[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Correcting an XML documentxsl-list@lists.mulberrytech.

Subject: Correcting an XML documentxsl-list@l...
From: walter.crockett@xxxxxxxxxxxxxxxxxxxxx
Date: Thu, 15 Jul 2004 18:07:57 -0400
correcting xml
A software application I use produces XML documents with inaccurate
information. I need to change a few values within the document and output
the whole corrected document as XML.

Two kinds of changes are necessary, both in nearly the same place in the
document structure:

1. For each /AttributeProps/Datatype element with a value of DATE, I need to
change DATE to TIMESTAMP.

2. For each  /AttributeProps/Order element, I need to take whatever the
value of Order is and then use that value to replace the value of 
 /AttributeProps/PhysicalOrder.

So if Order has the value 1, PhysicalOrder must have the value 1 also. (This
may already be true in many cases, but I imagine there's no sense in testing
that they're equivalent. I would be just as easy to overwrite the value of
PhysicalOrder every time, wouldn't it?)

So, basically, I need to change two types of things and then copy over the
entire XML document with the changes in it. This would seem very simple, but
I'm at a loss.


Walter Crockett

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.