[xsd-users] Attributes

Ruhs, Charles Charles.Ruhs at scientificgames.com
Wed Dec 5 10:52:01 EST 2007


Thanks for the quick reply. I spent about 4 hours on this only to
realize I forgot to copy the XSD to the release folder. It was using an
old schema to validate the new code.

Charlie

_________________________________
 
Charles Ruhs
1500 Bluegrass Lakes Parkway
Alpharetta, GA 30004
 
Work: 678-624-4290

Cell: 404-435-7805

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Wednesday, December 05, 2007 6:03 AM
To: Ruhs, Charles
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Attributes

Hi Charles,

Ruhs, Charles <Charles.Ruhs at scientificgames.com> writes:

> I've implemented a CXX\Parser using the XSD 3.0 version and am trying
to
> get attributes to work within this construct. What I need to know is
do
> attributes need a different type of Parser Pointers?

No, the C++/Parser mapping treats attributes and elements pretty much
the same.


> Right now I'm using xml_schema::string_pimpl as the parser pointer
> for the two attributes that I have in my xml file. The file is set
> up correctly according to the schema as best I can tell.

I can think of two ways to figure out what's going on. First, you
can try to generate a sample implementation and a test driver for
your schema and, provided it prints the attributes your are
interested in, see what you are doing differently. To generate
the sample implementation that prints the data and the test
driver, use the --generate-print-impl and --generate-test-driver
options.

The second option is for your to send a small example that reproduces
the problem and we will try to figure out what's going on.

Boris

This communication (including any attachments) is intended for the use of the intended recipient(s) only and may contain information that is confidential, privileged or legally protected. Any unauthorized use or dissemination of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation.




More information about the xsd-users mailing list