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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
- Stylus Studio Code Samples & Utilities (364)
-> + ConvertFromXML to TXT (2)
-> + Edi X12 835 to Flat file (2)
-> + License problem (2)
-> - Removal of elements from an XM... (3)
-> ->Removal of elements from ...
-> ->Removal of elements from ...
-> + XSL and Word docs (2)
-> + Develop a workflow using xml (2)
-> + Need help converting CSV to Ne... (2)
-> + Specify valid values for an el... (3)
-> + Question about the WYSIWYG fun... (2)
-> + XML diff tool (4)
-> + Validating schemas (3)
-> + Best way to fix a few hundred ... (6)
-> + Mapping problem please help me (2)
-> + Relational Database Hierarchic... (2)
-> + RDBMS - XML round-tripping (3)
-> + Converto FILE to XML (2)
-> - relational database acces - lo... (1)
-> + unsupportet URL scheme when tr... (6)
-> + XML in oil industry (3)
-> - Want to get the available para... (1)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio Announcements (113)
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.


(Deleted User) Subject: Removal of elements from an XML file
Author: (Deleted User)
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,

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

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!  

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.