Element name replacement
"salma.siddiqa" <[email protected]> Fri, 12 Oct 2012 14:40:42 +0530
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
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