Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2007, 04:36 PM
Member
 
Join Date: Nov 2007
Posts: 1
aorteu is on a distinguished road
Dom4j probelm with clearContent method
PLease, can somehone tell me (some snipplet or so) what is the way to remove a node (for example <Channel> node in the following XML) from a XMl File ?

I would like the method to be
public Document removeListChannels(Document doc, List<String> cForRemove)

where cForRemove is a list of ChannelIds.

<?xml version="1.0" encoding="UTF-8"?>
<MiTV context="EPG:Now">
<ReturnCode>0</ReturnCode>
<ReturnMessage>Your request was successful...</ReturnMessage>
<Channel>
<ChannelId>MiTeleTV_4_DEM_19</ChannelId>
<ChannelName nav="1">Antena 3</ChannelName>
<ChannelLogo nav="1">http://localhost/IMG_MITV/channel/MiTeleTV_4.jpg</ChannelLogo>
</Channel>
<Channel>
<ChannelId>MiTeleTV_3_DEM_19</ChannelId>
<ChannelName nav="1">Cuatro</ChannelName>
<ChannelLogo nav="1">http://localhost/IMG_MITV/channel/MiTeleTV_426.jpg</ChannelLogo>
<Program programId="MiTeleTV_3_DEM_19_2007-11-17-18-54-00_1194963560496">
<Title>News</Title>
<ProgramStartTime nav="1">1h 54mn</ProgramStartTime>
<ProgramEndTime nav="1">6mn</ProgramEndTime>
</Program>
</Channel>
<Channel>
<ChannelId>MiTeleTV_2_DEM_19</ChannelId>
<ChannelName nav="1">La 2</ChannelName>
<ChannelLogo nav="1">http://localhost/IMG_MITV/channel/MiTeleTV_153.jpg</ChannelLogo>
</Channel>
<Channel>
<ChannelId>MiTeleTV_1_DEM_19</ChannelId>
<ChannelName nav="1">Tve</ChannelName>
<ChannelLogo nav="1">http://localhost/IMG_MITV/channel/MiTeleTV_152.jpg</ChannelLogo>
</Channel>
<Channel>
<ChannelId>MiTeleTV_0_DEM_19</ChannelId>
<ChannelName nav="1">Canal Promocional</ChannelName>
<ChannelLogo nav="1">http://localhost/IMG_MITV/channel/MiTeleTV_392.jpg</ChannelLogo>
</Channel>
<ClientURL nav="1">http://localhost2/client/Nokia/Nokia1.sis</ClientURL>
<IndexCurrent nav="1">0</IndexCurrent>
</MiTV>

Thanks in advace

Alejandra Ortega

Last edited by aorteu : 11-26-2007 at 01:17 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method Help pringle New To Java 4 04-16-2008 02:23 PM
JTree Programmatic Node Expansion and Selection Probelm hemanthjava AWT / Swing 1 01-17-2008 07:36 AM
Gridbag Layout Probelm hemanthjava AWT / Swing 3 12-04-2007 06:12 PM
how to generate xml with Dom4j leonard XML 1 08-06-2007 05:39 PM
method not abstract, does not override actionperformed method. Theman New To Java 1 05-08-2007 07:13 AM


All times are GMT +3. The time now is 08:56 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org