Click here to Skip to main content
15,896,557 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralPassing parameters to XSLT Pin
Gktony9-Dec-07 6:46
Gktony9-Dec-07 6:46 
GeneralRe: Passing parameters to XSLT Pin
Prateek G9-Dec-07 19:35
Prateek G9-Dec-07 19:35 
GeneralRe: Passing parameters to XSLT Pin
Gktony10-Dec-07 1:59
Gktony10-Dec-07 1:59 
GeneralRe: Passing parameters to XSLT Pin
Prateek G10-Dec-07 2:16
Prateek G10-Dec-07 2:16 
GeneralPassing xsl:param Pin
Gktony9-Dec-07 6:43
Gktony9-Dec-07 6:43 
GeneralParsing CDATA to bject [modified] Pin
udikantz7-Dec-07 3:00
udikantz7-Dec-07 3:00 
GeneralRe: Parsing CDATA to bject Pin
jegastar11-Dec-07 2:07
jegastar11-Dec-07 2:07 
GeneralComparing two xml files Pin
anu815-Dec-07 22:17
anu815-Dec-07 22:17 
hi all,

I want to compare 2 xml files with each other. One xml file is standard on my pc and has the name standard.xml. the other xml file is on the server and has the name server.xml

i want to compare these 2 files with each other and if it contains new info it should be added in the pc.xml file.

in msdn, i found that XML diff and patch tool is used to compare two xml files. but i do not want to add a additional tool to be installed for this purpose.
i tried to do the comparison by getting the nodes in a XmlNodeList and comparing the two nodelists. but i am struck at one point.

how can i find out whether a node already exists in a xml document. say for eg,

in my xml file,i have a structure like this,
<Main>
<url type_node="S" tool_tip="http://www.mysite.com/sample.xml">http://www.mysite.com/sample.xml</url>
<Category2>
<url type_node="S" tool_tip="http://www.mysite.com/sample1.xml">http://www.mysite.com/sample1.xml</url>
</Category2>
</Main>

in this,
Category2 is a childnode of Main. i want to check if the url element for sample exists already in the document.

how can i do this. i tried using xmldoc.getElementsByTagName(node.innerText);
but i am always getting a count of 1 even if the node does not exits in the document.

Hope i am clear in my question.

Any suggestions?

Thanks in advance.Smile | :)

Regards

Anuradha

GeneralRe: Comparing two xml files Pin
sampath_dr28-Oct-09 21:20
sampath_dr28-Oct-09 21:20 
GeneralSerializing object using Generic.list Pin
ONeil Tomlinson4-Dec-07 12:25
ONeil Tomlinson4-Dec-07 12:25 
GeneralRe: Serializing object using Generic.list Pin
Prateek G9-Dec-07 22:40
Prateek G9-Dec-07 22:40 
GeneralSchema Design (specifically for xsd.exe) Pin
Brady Kelly4-Dec-07 3:56
Brady Kelly4-Dec-07 3:56 
QuestionCan I load an XPath result XmlNodeList into a Dataset/DataGrid? Pin
jack8091830-Nov-07 4:36
jack8091830-Nov-07 4:36 
AnswerRe: Can I load an XPath result XmlNodeList into a Dataset/DataGrid? Pin
George L. Jackson30-Nov-07 16:01
George L. Jackson30-Nov-07 16:01 
QuestionData islands is not working on ordered list Pin
hogan.smith29-Nov-07 22:06
hogan.smith29-Nov-07 22:06 
AnswerRe: Data islands is not working on ordered list Pin
led mike30-Nov-07 4:26
led mike30-Nov-07 4:26 
GeneralRe: Data islands is not working on ordered list Pin
hogan.smith30-Nov-07 17:16
hogan.smith30-Nov-07 17:16 
QuestionXSLT generator Pin
Yoyosch28-Nov-07 4:43
Yoyosch28-Nov-07 4:43 
AnswerRe: XSLT generator Pin
led mike28-Nov-07 5:09
led mike28-Nov-07 5:09 
GeneralRe: XSLT generator Pin
Yoyosch29-Nov-07 23:17
Yoyosch29-Nov-07 23:17 
AnswerRe: XSLT generator Pin
George L. Jackson30-Nov-07 15:35
George L. Jackson30-Nov-07 15:35 
QuestionMedia RSS 2.0 parser Pin
rajshri_newase27-Nov-07 22:21
rajshri_newase27-Nov-07 22:21 
Questionhow can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer27-Nov-07 21:05
Rajeshwar Code- Developer27-Nov-07 21:05 
AnswerRe: how can i create xml data abd how can i update delete and insert.. Pin
Prateek G27-Nov-07 22:35
Prateek G27-Nov-07 22:35 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer28-Nov-07 2:03
Rajeshwar Code- Developer28-Nov-07 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.