Solved

Filtering XML

Posted on 2007-04-05
2
187 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
2 Comments
 
LVL 3

Accepted Solution

by:
cavey_79 earned 125 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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ā€¦
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

830 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