473,670 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Missing attribute standalone=no in JDOM API

Currently I use jdom-b9 version to parase xml with the following xml
message

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
......

with the code like this
SAXBuilder builder = new SAXBuilder();
InputStream is = Thread.currentT hread().getCont extClassLoader( ).getResourceAs Stream("test.xm l");
Document doc = builder.build(i s);
XMLOutputter outp = new XMLOutputter();
System.out.prin tln(outp.output String(doc));

But the output result miss the attribute "standalone =no" in PI.
as folllowing
<?xml version="1.0" encoding="UTF-8"?>
.....

How can I restore the attribute "standalone =no" in JDOM
FilexBB
Jul 17 '05 #1
0 2278

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1963
by: Marcio DeBarros | last post by:
Hi, I am using JDOM to create and validate XML document in a Java app. for the first time, and am getting the error above when I am validating a document with SAXBuilder with the following DTD: <?xml version="1.0" encoding="utf-8" ?> <!-- DTD for a user definition file --> <!ELEMENT user (username, password, email?)> <!ATTLIST user id ID #REQUIRED>
3
15166
by: Bernd Oninger | last post by:
When I run the successfully compiled java source shown at the end I got a runtime error: Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content Where is the missing class ? I copied the newest jdom.jar from newest JDOM release b10 to the folder jdk\jre\lib\endorsed
1
2546
by: Dean Slindee | last post by:
Currently using: Dim xtw As New XmlTextWriter (path,system.Text.Encoding.UTF8) which produces: <?xml version="1.0" encoding="utf-8" standalone="yes" ?> how can I produce: <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
1
2967
by: Joe Harris | last post by:
I've searched everywhere but can't find a KB article or forum message about this one... Excel Pivot Tables differentiate between +0 (zero) and -0 (negative zero)and now that I've moved over to Access 2002 (from 97) and I've found the same thing. However, I've used a Pivot Table to produce a summary across a standard distribution (-1 to 1 in increments of 0.05) and this works fine (both zeroes shown) but when I attempt to recreate this...
2
3201
by: GlennDoten | last post by:
Upgraded to .NET 2.0 and VS.NET'05 and while compiling code that was fine under 1.1/2003 I'm getting a fatal compiler error: Conditional member 'GetTraceMode(out System.Web.TraceMode)' cannot have an out parameter and here's the method: public static void GetTraceMode(out TraceMode mode)
0
1522
by: sdb1031 | last post by:
I'm trying to learn about Python and XML. I would like to be able to add standalone="no" to my xml declaration when writing an xml file, but I am unable to figure out how. So far, I have the following code: import xml.dom.minidom doc2 = xml.dom.minidom.Document() print doc2.toxml('iso-8859-1') Which produces the following XML declaration: <?xml version="1.0" encoding="iso-8859-1"?>
1
1547
by: VK | last post by:
It is possibly more suitable to address this question to W3C mailing list, but I'm trying here first. Could anyone comment on <http://www.w3.org/TR/REC-xml/#sec-rmd> The first statement says: "If there are external markup declarations but there is no standalone document declaration, the value "no" is assumed."
1
1196
by: georgemocanu | last post by:
Hello I have this xml file : <?xml version="1.0" encoding="utf-8" standalone="no"?> <Root Date="Wednesday, September 05, 2007 9:31 AM"> <customer no="210003" name="ADCON ├95 SRL" address="Av. Radu Beller nr. 8" city="Bucuresti" /> <customer no="210004" name="AGAROM COMPANY SRL" address="SOS. OLTENITEI nr. 113 bloc 27 sc. 2 etaj 9 ap. 72 sector 4 cod postal 70000," city="Bucuresti" /> <customer no="210005" name="AGISFOR SRL."...
18
6763
by: Gabriel Rossetti | last post by:
Hello everyone, I had read somewhere that it is preferred to use self.__class__.attribute over ClassName.attribute to access class (aka static) attributes. I had done this and it seamed to work, until I subclassed a class using this technique and from there on things started screwing up. I finally tracked it down to self.__class__.attribute! What was happening is that the child classes each over-rode the class attribute at their level,...
0
8813
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7412
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1791
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.