W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2012

Element name replacement

From: salma.siddiqa <salma.siddiqa@excelindia.com>
Date: Fri, 12 Oct 2012 14:40:42 +0530
Message-ID: <001701cda859$75115bc0$5f341340$@excelindia.com>
To: <xmlschema-dev@w3.org>
Hi,
I am new to XSD, I went through your blog would you kindly help me.
I want to generate an xsd which will validate an xml.
The xml file is the html converted file and hence has html tags
I want to validate the tag Hierarchy
Eg: if the <p> tag has <div> tags within it then replace the <p> tag's
element name as "div"
<div id="div1">
 <p id="p1">
      <div id="div2">hello</div>
</p>
</div>
 
 
This should be :
<div id="div1">
 <p id="p1">
      <p id="div2">hello</p>
</p>
</div>
 
 
 
 
I need it urgently, looking forward for your reply.
 
Thanks & Regards
Salma Siddiqa

 
Received on Friday, 12 October 2012 12:19:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:02 UTC