Karla
03-16-2000, 01:03 PM
The concept is:
I am producing a second XML from sub parts of a first XML. I want to grab
all of the data and sub-tags from <author>, both data and tagging, from the
first XML to be placed in the second XML without hard-coding all of the child-elements.
How can I do this given the following example?
First XML ( Original info )
<doc>
<author>
<firstname>
Joe
<\firstname>
<lastname>
Smith
<\lastname>
<\author>
<publisher>
blah blah blah
<\publisher>
<\doc>
Second XML ( Desired Result )
<author_list>
<author>
<firstname>
Joe
<\firstname>
<lastname>
Smith
<\lastname>
<\author>
<\authors_list>
I am producing a second XML from sub parts of a first XML. I want to grab
all of the data and sub-tags from <author>, both data and tagging, from the
first XML to be placed in the second XML without hard-coding all of the child-elements.
How can I do this given the following example?
First XML ( Original info )
<doc>
<author>
<firstname>
Joe
<\firstname>
<lastname>
Smith
<\lastname>
<\author>
<publisher>
blah blah blah
<\publisher>
<\doc>
Second XML ( Desired Result )
<author_list>
<author>
<firstname>
Joe
<\firstname>
<lastname>
Smith
<\lastname>
<\author>
<\authors_list>