Questions tagged [jdom-2]

JDOM 2 is the Second version of the JDOM XML API See the [Migration Guide][1] for differences over JDOM 1

JDOM 2 is the Second version of the JDOM XML API

See the Migration Guide for differences over JDOM 1

165 questions
0
votes
2 answers

how to delete specific row in XML using java

This is my XML file
vijayk
  • 2,633
  • 14
  • 38
  • 59
0
votes
1 answer

Remove entire xml node

I try to remove a node from my xml with jdom2 but i don't find the answer my xml is like this : 5646 Ludo 850
Sneeky
  • 25
  • 1
  • 6
0
votes
1 answer

build an XML with JDOM2 and add data

I'm new to using JDOM2 with java and i don't find how to not repeat the open tag of xml this look like this in the xml file when i created my "compte" : 4465
Sneeky
  • 25
  • 1
  • 6
0
votes
0 answers

How to set String value in dataModel in java?

I am reading XML file through Jdom and save into DataModel list. then display that list in outputText and get in controller that time print correctly. problem is when I am going to display that list in inputText and get in controller that time it…
vijayk
  • 2,633
  • 14
  • 38
  • 59
0
votes
3 answers

How to remove children element from XML in java?

I want to remove child element from xml. My XML file is
vijayk
  • 2,633
  • 14
  • 38
  • 59
0
votes
1 answer

Access JDOM elements independent of its namespace

I have a xml like below: test data test data1 test data2 When I'm accessing ABC element using JDOM2, i'm getting the element value in debug…
0
votes
1 answer

How to write xml attribute value in JDOM?

This is xml file .I want to read and write this xml at a time. this is my java code to…
vijayk
  • 2,633
  • 14
  • 38
  • 59
0
votes
1 answer

Effect of setTextMode(Format.TextMode.TRIM) in Format class in JDOM2

I am upgrading my code jdom to jdom2.0.5. My previous code was, JDOM 1.0 XMLOutputter outputter = new XMLOutputter(" ", true); outputter.setIndent(true); Now I am using Format class like the following, JDOM 2.0.5 Format format =…
user1942241
  • 73
  • 1
  • 5
0
votes
2 answers

concating multiple processing instruction results in a for loop in XQuery,XPath

I need to read all processing instructions with NAME="CONTENTTYPE" and I want to read @VALUE and concatenate all the Values and return in XQuery/XPath. My XML:
0
votes
1 answer

Call Java Instance methods from XSLT in JDOM

I'm using JDOM2 to handle the XML that my application processes and would prefer to use the JDOM2 XSLT processing as well. From my XSLT, I'm hoping to call methods on java instances that have been created by my application prior to the call to the…
DaveH
  • 7,187
  • 5
  • 32
  • 53
0
votes
1 answer

The name "context:annotation-config" is not legal for JDOM/XML

How i can write this : using jdom2. i tried by : beans.addContent(new Element("context:annotation-config")); beans.addContent(new…
user2602584
  • 737
  • 2
  • 7
  • 25
0
votes
1 answer

Using Jdom to read xml

I'm using JDOM for the first time and so far, not very successfully. Also, I'm a .NET guy who was assigned a Java project. I have this xml file and I'm trying to read all the elements. This is the code I have so far. The response is where I get the…
Rui Martins
  • 2,164
  • 7
  • 33
  • 52
0
votes
1 answer

Escaping attribute values in JDOM 2 with disable-output-escaping PI set

I'm on the incubating Apache JSPWiki team and trying to upgrade our project from JDOM 1.1.2 to JDOM 2.0.5. 98% of the conversion seems to work fine but I've come across one problem preventing us from upgrading, involving JDOM2's…
Glen Mazza
  • 748
  • 1
  • 6
  • 27
0
votes
1 answer

How to apply xml-stylesheet to JDOM2 Document

Suppose you have built your XML document using JDOM2 library. What is the API for adding xml-stylesheet to get something like: ...
user1454926
  • 181
  • 8
0
votes
1 answer

How to get all element names with JDOM 2 via XPath in Java 7?

I have a XML file like the following. MySite I want to get all names of Groups' children elements (in this…
Tony Stark
  • 2,318
  • 1
  • 22
  • 41
1 2 3
10
11