Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Child Elements/Nesting

Reply
Thread Tools

Child Elements/Nesting

 
 
Bill C
Guest
Posts: n/a
 
      02-26-2004
I'm new to this so... Is it possible to create a well formed schema
with child elements or do I some how have to use xslt to nest elements
within elements to produce my final xml result set. My current xml
output looks like this...
<OrderSubmit>
<Customer>ABC Company</Customer>
<AccountID>100313</AccountID>
<CustomerPO />
<ReasonCode>P06366</ReasonCode>
<Email>170878</Email>
</OrderSubmit>
- <OrderSubmitShipTo>
<ShipToName>ABCCompany</ShipToName>
<ShipToAddress1>123 Mulbury Lane</ShipToAddress1>
</OrderSubmitShipTo>

But I want it to look like this...
<OrderSubmit>
<Customer>ABC Company</Customer>
<AccountID>100313</AccountID>
<CustomerPO />
<ReasonCode>P06366</ReasonCode>
<Email>170878</Email>
- <OrderSubmitShipTo>
<ShipToName>ABCCompany</ShipToName>
<ShipToAddress1>123 Mulbury Lane</ShipToAddress1>
</OrderSubmitShipTo>
</OrderSubmit>
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with child text node when constraining other child node types Bryan Ax XML 6 05-17-2006 09:08 PM
restrict the value of one child based on value from another child leon XML 0 09-27-2005 03:32 PM
EJB: How to delete child entries from a parent-child CMR one-to-many relationship? davout Java 0 04-18-2004 07:02 PM
[HELP] Why the child window reopen a new child window ? bhchng ASP .Net 0 01-13-2004 07:17 AM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM



Advertisments