[xsde-users] Custom Type with Multiple Files

Samuel Friedman samuel.friedman at cammlab.org
Wed Sep 7 07:43:28 EDT 2016


Hello,

I'm trying to use the --custom-type flag for XSD/e for cxx-hybrid. I've
tried following the wildcard examples in the xsde code and read through the
documentation, and I am at a loss about how I want to do what I want to do.

I have an element, called custom, that has a sequence of xs:any elements
(or wildcard elements). When parsing, I don't want to descend through an
XML tree for each element, but rather be able to access the contents of
each element as a std::string. When serializing, I want the user to be able
to write a string (including a string that contains XML) and put them in
the custom element.

When I run xsde, I'm running xsde on multiple XSD files at the same time to
handle the includes properly.

How do I specify what the namespace of my custom element? How do I handle
the wildcards as an array of strings? I've tried many permutations of

--custom-type=v/string/string
--custom-type=v/::std::string/::std::string

and I'm still at a loss. It doesn't seem like need to write custom parsers
and serializers because this should already part of the standard. Since I
have no idea what will be in this custom element, I want to ignore it as
much as possible and hand the parsing/serializing off to the user.

I know there are concerns about validation, but I will be validating the
files outside of XSD/e due to my use of Schematron.

Thanks,
Sam

-- 
Dr. Samuel H. Friedman
Postdoctoral Scholar - Research Associate

Lawrence J. Ellison Institute for Transformative Medicine of USC
USC Center for Applied Molecular Medicine
University of Southern California
2250 Alcazar St, Rm 259
Los Angeles, CA 90089-9075
Phone: 323-442-2531 | FAX: 323-442-2764
Email: samuel.friedman at cammlab.org


More information about the xsde-users mailing list