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
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Trevor O'NeillSubject: Removal of elements from an XML file
Author: Trevor O'Neill
Date: 11 Nov 2007 07:44 PM
I am a complete novice with XML and am on a very steep learning curve.

My Problem, I have created an XML File by exporting the data from MS Access. However the XML File created includes the Relational Fields used in Access for the Sub Tables which are not required in the XML File. Is there a way to delete ALL such elements and the associated data thoughout the XML File.

I have given a common name to all such Fields (ie., <CID>in hope that some routine could run across the file

Is there a simple Routine that i can run OR is the Task far more complicated.

Trev.

Postnext
Alberto MassariSubject: Removal of elements from an XML file
Author: Alberto Massari
Date: 14 Nov 2007 02:33 AM
Hi Trevor,
you can write an XSL stylesheet that performs an "identity transformation", i.e. it copies the data in input to the output, adding a template matching your CID element that doesn't copy anything.

Hope this helps,
Alberto

Posttop
Trevor O'NeillSubject: Removal of elements from an XML file
Author: Trevor O'Neill
Date: 14 Nov 2007 05:26 PM
Thanks Alberto

 
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.