[xsd-users] XML validation problems

aamir.mohammad at aon.ca aamir.mohammad at aon.ca
Wed Dec 3 14:48:50 EST 2008


The XSD C++/Tree documentation uses the following XML as an example:

<?xml version="1.0"?>
<hello xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="hello.xsd">
  <greeting>Hi</greeting>
  <name>sun</name>
</hello>


I want to be able to parse XML with the following format:

<?xml version="1.0"?>
<hello>
  <greeting>Hi</greeting>
  <name>sun</name>
</hello>


Is this possible?  I don't want to have to include xmlns stuff.  Ideally I 
would like to be able to drop the <?xml version="1.0"?> part as well, so 
that I am able to parse the following text:

<hello>
  <greeting>Hi</greeting>
  <name>sun</name>
</hello>


Thanks,
Aamir



**********************************************************************************
This communication (and any attachments) is directed in confidence to the addressee(s) listed above, and may not otherwise be distributed, copied or used.  The contents of this communication may also be subject to privilege, and all rights to that privilege are expressly claimed and not waived.  If you have received this communication in error, please notify us by reply e-mail or by telephone and delete this communication (and any attachments) without making a copy.  Thank you.

***************
La présente communication (et tout fichier rattaché) s'adresse uniquement au(x) destinataire(s) précité(s) et ne peut être autrement distribuée, copiée ou utilisée.  Le contenu de cette communication peut être assujetti au privilège.  Tout droit à ce privilège est expressément revendiqué et nullement abandonné.  Si vous avez reçu cette communication par erreur, veuillez nous en avertir immédiatement en répondant à ce courriel ou en nous appelant.  Veuillez également effacer cette communication (et tout fichier rattaché) sans en conserver une copie.  Merci.


More information about the xsd-users mailing list