XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
krishna marupeddiSubject: Renaming child element name while preserving the whole document in addition to removing namespaces.
Author: krishna marupeddi
Date: 27 May 2010 06:54 PM
Originally Posted: 27 May 2010 02:20 PM
Hi, I am trying to convert a Schema to DTD and in addition to the conversion I have to rename the child element (same name as the parent element) to a different name while preserving the rest of the document.

I am able to convert a schema to DTD, but am having issues with the second part.

Here's the sample data...

---------
<CaseInformation>
..............................
<ProblemType>
<ProblemName>Hot outage</ProblemName>
<ProblemCode>D1255</ProblemCode>
<ProblemType>OverHeated</ProblemType> -- Would like to rename this element to <ProblemTypeCode>
</ProblemType>
............................
</CaseInformation>

The output should be as follows:

<CaseInformation>
..............................
<ProblemType>
<ProblemName>Hot outage</ProblemName>
<ProblemCode>D1255</ProblemCode>
<ProblemTypeCode>OverHeated</ProblemTypeCode> -- This element name is changed
</ProblemType>
............................
</CaseInformation>


Appreciate any help in this regard.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.