Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Filtering XML

Posted on 2007-04-05
2
Medium Priority
?
192 Views
Last Modified: 2010-03-31
Hi,
 
i want to be able to remove some element from an XML before sending it to some server. This is happening in real-time. What tools can i use?
0
Comment
Question by:komlaaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
cavey_79 earned 500 total points
ID: 18857790
You will probably have to parse the xml yourself and remove the offending elements. You can look at any easy examples of parsing with SAX and they will output nodes to the screen for example. That can be easily change to generate xml.

There's also the alternative of using an XSL stylesheet to generate another xml file from the input file. The XSL file will specify which nodes to keep out.

For a quick tutorial on XSL, go here:
http://www.w3schools.com/xsl/
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18858340
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues undeā€¦
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilationā€¦
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.
Suggested Courses

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question