The problem that I am having is regarding parsing br tags in an HTML
document. I keep getting an error saying that br needs to be ended with
an /br tag. However, no matter what I try (using HTMLBRElement or
TextElement or HTMLElement) I cannot get an /br tag. Is there a parser
feature that can be
Neil,
Thanks for the response. I guess to some extent the problem is one needs to
be solved within the standard JAXP specification, possibly by deprecating
setValidating and defining setDTDValidating and setXSDValidating methods
instead?
Simon
-Original Message-
From: [EMAIL PROTECTED]
thanx for the help. My problem is solved.
Andy Clark [EMAIL PROTECTED] wrote:
This is not enough information to reproduce the problem thatyou are experiencing. What is the data? Is there any codethat modifies the tree? Where do these nodes that you'readding to the Vector come from? What are the
William Lane wrote:
well i cant for the life of me figure out how to get Xerces to make me a
new XML document. is there anyone out there who could help me? i am really
new to XML and Xerces.
Also look into the javax.xml.parsers interfaces that are
part of JAXP (and that is implemented by
David M. Hirst wrote:
I'm using the parser to parse html as well as xml documents. When
I read in an html file, the parser is generating the following error on
Please realize that most HTML documents are *not* well-formed
XML documents and therefore cannot be parsed by any conformant
Eric E. Penetar wrote:
The problem that I am having is regarding parsing br tags in an HTML
document. I keep getting an error saying that br needs to be ended with
Most HTML documents are *not* well-formed XML documents and
therefore cannot be parsed with an XML parser. For possible
solutions,
One other option would be to discard the HTMLDocument classes entirely,
and instead create all the neccesary tags as if they were xml tags. It's a
bit of a hack but seems to do the trick
On Tue, 16 Apr 2002, Andy Clark wrote:
Eric E. Penetar wrote:
The problem that I am having is regarding
Hello,
I have 2 problems with entities:
-1-
I create a XML DOMDocument that at the end I serialize to HTML with Xerces
HTMLSerializer.
The problem is that I want to insert nbsp is the document. And when I
serialize, the nbsp convert to amp;nbsp. How can I avoid this?
-2-
I have a xml document,
Hi all,
I would like to parse a message, but leave some elements untouched:
This is my XML:
?xml version=1.0 encoding=UTF-8?
MESSAGE TYPE=start VERSION=0.1
HEADER
SENDERjobcontroller/SENDER
RECEIVER[1006513692672]/RECEIVER
/HEADER
BODY
FROM[EMAIL PROTECTED]/FROM
TO[EMAIL
Hello,
I am using XML Schema and I have some questions to support Schema
versioning.
I would like to use the standard attribute version in my schemas.
Is there a way to get it directly with some API method (like
getSchema().getVersion() ), or should I open the schema as an XML file and
look for
Hi everyone,
Any body knows how avoid any network access when parsing a XML file with
Xerces or Crimson. The application I am developing has to deal with full
qualified XML sources (I mean with public dtd URLs) and must work without
network connection. I know that I would lose the syntax check,
On Tue, 2002-04-16 at 12:19, Valentin Ruano wrote:
Hi everyone,
Any body knows how avoid any network access when parsing a XML file with
Xerces or Crimson. The application I am developing has to deal with full
qualified XML sources (I mean with public dtd URLs) and must work without
network
Title: RE: About performance
I've encountered this performance degradation also, and wondering if there are any suggestions for optimization. We are using Xerces to process DTDs and build an abstarct model of them. With large DTDs (example: Docbook), we always get an Out of Memory error. This
Hi everyone
First of all, Gottfried, Thanks a lot for you help.
So I understand that your solution requires change xerces/crimson code a
bit...
i havbe removed some internal checks - so this code is note
compilable.
...mmm unfortunatelly thats the kind of thing I would like to avoid. What I
On Tue, 2002-04-16 at 16:26, Valentin Ruano wrote:
Hi everyone
First of all, Gottfried, Thanks a lot for you help.
So I understand that your solution requires change xerces/crimson code a
bit...
not really, because its enough to set the entity resolver in the parser.
e.g.
= code
ah! thats good,
but then, what do you mean with i havbe removed some internal checks - so
this code is note compilable.?
regards, Valentin.
-Original Message-
From: Gottfried Szing [mailto:[EMAIL PROTECTED]
Sent: 16 April 2002 15:48
To: [EMAIL PROTECTED]
Subject: RE: Avoid
Cool!
That's what I wanted to know, thanks a lot Eric!
-Original Message-
From: Eric Hodges [mailto:[EMAIL PROTECTED]
Sent: 16 April 2002 15:52
To: [EMAIL PROTECTED]
Subject: RE: Avoid network access fetching the DTD
I think you can just set the
On Tue, 2002-04-16 at 16:57, Valentin Ruano wrote:
ah! thats good,
but then, what do you mean with i havbe removed some internal checks - so
this code is note compilable.?
oops, many typos :))
this means that our entityresolver is doing much more than the
resolver code i have posted. i have
Ok, thanks a lot. Now I've got good looking solutions.
cheers, Valentin.
-Original Message-
From: Gottfried Szing [mailto:[EMAIL PROTECTED]
Sent: 16 April 2002 16:07
To: [EMAIL PROTECTED]
Subject: RE: Avoid network access fetching the DTD
On Tue, 2002-04-16 at 16:57,
Hello,
I am trying to add a processing instruction to a document similar to
this:
?xml version=1.0 encoding=utf-8?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN
http://www.w3.org/TR/SVG/DTD/svg10.dtd;
?xml-stylesheet href=focus.css type=text/css?
svg width=150 height=450
Try something like
newdoc.insertBefore(pi, newdoc.getFirstChild())
-Original Message-
From: Randy George [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 6:56 PM
To: [EMAIL PROTECTED]
Subject: Re: creating ProcessingInstruction
Hello,
I am trying to add a
Samuel Cheung wrote:
Does anyone know if either Jtidy or NekoHTML creates a HTML DOM (defined in
the package org.apache.html.dom) from a HTML document? In other words, for
each input tag, it creates an object HTMLInputElementImpl, for image
tag, it creates an object HTMLImageElementImpl, and
t == tom john [EMAIL PROTECTED] writes:
t Hi, i get xmldata encapsulated in CDATA section as follows:
t ... data ![CDATA[ nameabc/name tel/tel ]]
t /data ...
If you have the option of creating an intermediate file (or
StringWriter?), you could write the CDATA section with
Could anyone tell me what protocol Xerces uses to retrieve files that are
not local to the machine and whose URL is specified with a format like
file://host/path? We originally thought it was using anonymous ftp -
we hosted our XML files on an NT server machine and we got FTP errors if
anonymous
24 matches
Mail list logo