"anyType" has mixed=true, so it allows textual data. Your "anyDataType" has
mixed=false, so it doesn't allow textual data.
Adding mixed="true" to either or makes your
type "mixed".
HTH,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
---
Hui Cai wrote:
When I call the getAttribute(String), it converts any line
> breaks to a white space. Is there a way the line breaks can
> be preserved?
Make your attribute type CDATA *and* embed the line breaks
in your attribute content as character entity references.
For example:
Also, if you w
Hi,
Yes, I
see what you mean.
Can
you specify your JDOM version, Xerces version (only if you use xerces
version different from the supplied with JDOM).
And
then, please include fragment of the call you use to seralize DOM into
text.
>> I only use JDOM which I think
essentially is
Hi Dimitry,
To avoid confusions let me explain exactly what we
are doing. Our is a content management system. WE create content objects that
has metadata associated with it. And we store the metadata in the form of XML as
a clob in oracle database. We also store some of the fields like summar
Hi
again,
It's
still very difficult to say what exactly go wrong.
In
your examples I don't see where Xerces is used.
Do you
convert JDOM strucuture into org.w3c.dom using Xerces after
that?
What
do you mean "generated XML"? Do you output it as a text? In this case, what do
you use to o
Pae,
Obviously, you could use the DOM API provided by Xerces-J to
construct the infoset for the XML Schema consisting of the elements used in
the XML Representation of XML Schema, and then serialize that.
But if you want something that will help make sure that what you are
buildin
>So would the line breaks preserved during parsing if they are in the
element content?
Yes, modulo normalization of the various ways of coding a line break.
Again, see the XML Recommendation.
__
Joe Kesselman / IBM Research
I am using JDOM API which in turn uses xerces. I am
putting it as normal text of an element.
This is how I added the data:
currElem = new
Element(currValue);previousElem.addContent(currElem);
I am adding this from a web based application
(Content Management System that stores the metadata
So would the line breaks preserved during parsing if they are in the element
content?
-Original Message-
From: Joseph Kesselman [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 9:31 AM
To: [EMAIL PROTECTED]
Subject: Re: line breaks in attributes
See http://www.w3.org/TR/REC-x
Hi
Praveen,
Can
you explain which way you use to "add" this characters. Then how do you see they
are converted to question marks. Please, provide frgaments of
your code for clarity.
Thanks,
Dimitry
-Original Message-From: Praveen Peddi
[mailto:[EMAIL PROTECTED]Sent: Thursda
I am adding high bit characters like copy right
symbol and trade mark symbol and they are automatically getting to question
marks. I am using the default encoding.
Could anyone tell me how I can store these
characters in an XML.
Thanks
Praveen
To answer your questions,
org.w3c.dom.views, org.w3c.dom.stylesheets, and org.w3c.dom.css are part
of DOM Level 2. As far as I know, there is no support for these interfaces
in Xerces.
javax.xml.transform.* provide an API for XML Transformation, though you
probably know that since you use Xalan a
See http://www.w3.org/TR/REC-xml#AVNormalize. Line breaks in attributes
are not meaningful in XML, and are normalized into spaces.
__
Joe Kesselman / IBM Research
-
To unsubscribe, e-mail: [
Hi,
When I call the getAttribute(String), it converts any line breaks to a white
space. Is there a way the line breaks can be preserved?
Hui
+
This email message (and any attached document) contains information from
Ingenuity Systems Inc. which may be considered confidential by Ingenu
Does anyone know when the archives of the Xerces-J user and developer
mailing lists will be made available? Both of the archive sites
http://xml-archive.webweaving.org/xml-archive-xerces-j-user/ and
http://xml-archive.webweaving.org/xml-archive-xerces-j-dev/ indicate that they
are curre
Hello,
Forgive me for asking such a basic question, but I can't find an
example or documentation that shows how to do this. I am constructing a DOM
tree and need to have the degree symbol appear within PCDATA. What I'm trying
to construct would be similar to:
37 °C
Hello,
what is the difference between:
Xerces 2.2.0: xmlParserAPIs.jar and Xerces 2.3.0: xmlParserAPIs.jar?
Packages like dom/views dom/stylesheets dom/css xml/transform/.. have been
added. What are they good for?
why is xml-apis.jar been distributed, too?
it is bigger than the xml-apis.jar dist
I understand we can use xerces to build, parse, and validate
XML. At least that's what I have been using it for up to now.
Now I need to know if it also support or contains an extension
to "build the XML Schema."
Any info and/or comments?
Pae
-
I want regular expressions for valid element names,
element text, attibute name, attibute values. Let me
know if the following are correct
element and attribute name -
^[a-zA-Z_][a-zA-Z0-9_]*$
element text & attribute value -
^([^&]|(&(amp|quot|apos|lt|gt);))*$
~rf
___
Given the following snippets from a schema definition ( look in
particular on the element name "Details" .. ):
Status information conveyed in
responses
20 matches
Mail list logo