[xsde-users] XSD/e 3.2.0 - Getting g1 prefix on elements - why?
Jonathan Haws
Jonathan.Haws at sdl.usu.edu
Thu Apr 11 09:25:00 EDT 2013
Thanks Boris! I don't know how I missed that as I did read that section! :)
Sent from my smartphone - sorry for any typos!
-------- Original message --------
From: Boris Kolpackov <boris at codesynthesis.com>
Date: 04/11/2013 7:22 AM (GMT-07:00)
To: Jonathan Haws <Jonathan.Haws at sdl.usu.edu>
Cc: xsde-users at codesynthesis.com
Subject: Re: [xsde-users] XSD/e 3.2.0 - Getting g1 prefix on elements - why?
Hi Jonathan,
Jonathan Haws <Jonathan.Haws at sdl.usu.edu> writes:
> How can I get rid of the 'g1' prefix? I want the g1 prefix to be
> say "myxml". The 'g2' I would like to be "mygps".
You can assign preixes to namespaces like this:
doc_s.add_prefix ("myxml", "http://mywebsite");
doc_s.add_prefix ("mygps", "http://someotherwebsite");
See Section 8.1, "Document Serializer" for details:
http://www.codesynthesis.com/projects/xsde/documentation/cxx/serializer/guide/index.xhtml#8.1
Boris
More information about the xsde-users
mailing list