I've been playing with the EntityResolver class for a bit and I think I've
got it all working, but I noticed that publicId always comes in as an empty
string. In what cases would publicId actually be populated and/or how should
my code handle it in relation to systemId.
Thanks.
-Original Mes
abhishek
When you save a file to disk, you can save it in different encoding formats.
Either 8bit 16bit or
even 32bit formats. It determines how many bits of memory are utilized for
each character in your document.
The encoding attribute is telling the XML Processor what encoding we should
be usi
Whoops. Should have done my homework. It appears that Xerces does not
recognize the "^" and "$".
I think this is what you want:
-Original Message-
From: Radek Wisniewski [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 7:12 AM
To: [EMAIL PROTECTED]
Subject: regexp bug
Pa
Title: RE: Using Schema Validation
You can use EntityResolver interface to tell the Parser where to look for
schemas. You will have to implement resolveEntity(String publicid,String SystemId) to resolve the URI.
-Original Message-
From: Beyer,Nathan [mailto:[EMAIL PROTECTED]]
Sent: T
> Hi,
> I have an XML String.
> I need to obtain its corresponding Document object, without validating
> the XML string.
>
> i.e. i need the output of
> parser.getDocument()
> without calling parser.parse(InputSource) before calling the above
> method.
>
> Is it possible to get this Do
Hi,
A rookie question regarding encoding
Seen a lot of posts regarding UTF-8/16 encoding. Could someone briefly
explain what exactly is meant by the encoding attribute.
Meaning when we say
What does the encoding attribute denote, and what is its relavence to
the xerces parser?
Are there any p
This is not an error. The regex pattern specifies that the value must
contain two, three, or four "a" characters. It does NOT specify that the
value must ONLY contain two, three, or four "a" characters.
Try using ^[a]{2,4}$
-Original Message-
From: Radek Wisniewski [mailto:[EMAIL PROTECTE
Hi,
I have an XML String.
I need to obtain its corresponding Document object, without validating
the XML string.
i.e. i need the output of
parser.getDocument()
without calling parser.parse(InputSource) before calling the above
method.
Is it possible to get this Document object without
Patterns like this:
say:
strings "a" is not valid
strings "aa" "aaa" "" are valid
but "a" "a" and so on are valid to
Upper limit doesn't work.
xerces 1.4.3
any JDK
Radek Wisniewski
www.datenknecht.de
--
Good call, I missed that one. I also had to stop declaring this feature:
http://apache.org/xml/features/validation/dynamic to true. When I left it as
the default false the schema validation started working. Does that feature
somehow conflict with http://apache.org/xml/features/validation?
The next
Hi Nathan Beyer,
For your information.
> MyXML.xsd -
>
> http://www.w3.org/2001/XMLSchema-instance";
In the XML schema file, you need to mention the name space as:
http://www.w3.org/2001/XMLSchema
and not as http://www.w3.org/2001/XMLSchema-instance.
-- Venkatesh
use Xerces 1.4.3. see "http://xml.apache.org";
Set the feature "http://apache.org/xml/features/validation/schema"; to true.
Refer to the XML Schema primer 2/5/01 from the W3C website
"http://www.w3.org"; for details of
how to construct schemas.
This works. We use it.
Mat Loryman
Viewgate UK.
Hi
I work for an organisation that is using schemas to define the structure of our
XML files. At present we have to convert the schemas to dtd's in order to
validate the xml documents. Is it possible to validate a document directly
against the schema and if so how? I've had a few attempts and no
Try using importNode and this should solve your problem.
Cheers,
Rahul.
> From: Menarek John-NJM010 <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Creating a string from a portion of XML DOM tree
> Date: Wed, 12 Sep 2001 16:28:55 -0500
>
> I think you are rig
14 matches
Mail list logo