You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Gus Delgado <gu...@netquotient.com> on 2001/04/12 16:35:02 UTC

Validation

I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Cory Isaacson <ci...@capita2.com>.
Gus,

I think in the Xerces samples there are examples of how to Serialize an XML
document or element to a string, and certainly on how to parse.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 8:02 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


are there any examples out there on how to do this?

-----Original Message-----
From: Cory Isaacson [mailto:cisaacson@capita2.com]
Sent: Thursday, April 12, 2001 9:49 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Cory Isaacson <ci...@capita2.com>.
Gus,

I think in the Xerces samples there are examples of how to Serialize an XML
document or element to a string, and certainly on how to parse.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 8:02 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


are there any examples out there on how to do this?

-----Original Message-----
From: Cory Isaacson [mailto:cisaacson@capita2.com]
Sent: Thursday, April 12, 2001 9:49 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Gus Delgado <gu...@netquotient.com>.
are there any examples out there on how to do this?

-----Original Message-----
From: Cory Isaacson [mailto:cisaacson@capita2.com]
Sent: Thursday, April 12, 2001 9:49 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Gus Delgado <gu...@netquotient.com>.
are there any examples out there on how to do this?

-----Original Message-----
From: Cory Isaacson [mailto:cisaacson@capita2.com]
Sent: Thursday, April 12, 2001 9:49 AM
To: soap-user@xml.apache.org
Subject: RE: Validation


Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Cory Isaacson <ci...@capita2.com>.
Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Validation

Posted by Cory Isaacson <ci...@capita2.com>.
Gus,

There may be an easier way, but for sure one way would be to serialize the
document to a stream, and parse that stream using Xerces with validation
turned on. Again, there may be other ways to do it, but this would work for
sure.

Thanks,

Cory

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Thursday, April 12, 2001 7:35 AM
To: soap-user@xml.apache.org
Subject: Validation


I'm sorry for asking an xml question, but I know there are some experts on
this mail list :0)

Can I validate the data in an Element or Document object with a DTD inside
my code, in other words if the rpcrouter servlet were to execute a method
execute(Element element) in an object call ABC, an the element I get as an
argument is the root to an xml file:
<ROOT>
 <DATA>
  <DATA1></DATA1>
 </DATA>
</ROOT>

can I validate that Element with a DTD during execution, and if I can, how
would I go about it.  If someone can point me in the right direction, I
would greatly appreciated.

Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org