Solved

Filtering XML

Posted on 2007-04-05
2
179 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
Comment Utility
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
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now