2
Answers

How to retrieve data from XML file after Schema validation?

xuke0518

xuke0518

20y
2.4k
1
In my XML file, it has this line with the top element. xmlns="http://tempuri.org/XMLSchema.xsd". I think this line it is used to conform with schema, Because I specified ValidationType in XmlValidatingReader instance to ValidationType.Schema. However, if I use xpath (XmlDocument's SelectSingleNode method ) to select node(s). It would not find any thing at all. Once I delete "xmlns="http://tempuri.org/XMLSchema.xsd"" from the XML file, it works fine? Could anyone please point out why I cannot retrieve data by Xpath after schema validation? Thank you very much
Answers (2)
0
Anjali Khan

Anjali Khan

NA 738 42.2k 7y
Frnds
 
not copied table data only procedure n function
0
Laxmidhar Sahoo

Laxmidhar Sahoo

NA 2.3k 1.4k 7y
madam
 
follow the below procedure to take script
 
 
 
Choose the advance button from the bellow dialog box at the top
 
 
select schema and data from the dropdownlist in the bellow dialogbox of option
 
Type of data to script
 
 
0
Esakki Muthu

Esakki Muthu

NA 882 342 7y
If the SQL server versions are same then just take a backup of your database (.bak file) and retore it in the new system. OR 
While generating the scripts choose "Schema With Data" option