XML
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists XML

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old April 1st, 2008, 10:50 AM
Kumar Velineni, Integra
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Compare Heirarchy of 2 XML Files

Dear Friend,



I am having two XML files. I would like to compare the hierarchy
of elements & its attributes and throws the difference in a error file. I
don't want to compare the content. Heirarchy of elements in both the XML
files should match.



Here is an example:



File 1:

<?xml version="1.0"?>

<html>

<body>

<fm>

<p>This is a simple Para</p>

<list>

<li>This is a simple Para</li>

</list>

</fm>

</body>

</html>



File 2:

<?xml version="1.0"?>

<html>

<body>

<fm lang="es">

<p>This is a <strong>simple</strongPara</p>

<p>This is a simple Para</p>

</fm>

</body>

</html>



Difference between the 2 files are:

1. Strong tag with <p>
2. <listhas been coded as <p>
3. lang attribute added in <fm>





Regards,

Kumar V.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists XML > Compare Heirarchy of 2 XML Files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT