From samuel.friedman at cammlab.org Wed Sep 7 07:43:28 2016 From: samuel.friedman at cammlab.org (Samuel Friedman) Date: Wed Sep 7 07:44:00 2016 Subject: [xsde-users] Custom Type with Multiple Files Message-ID: 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@cammlab.org From boris at codesynthesis.com Thu Sep 8 11:16:24 2016 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Sep 8 11:16:27 2016 Subject: [xsde-users] Custom Type with Multiple Files In-Reply-To: References: Message-ID: Hi Samuel, Samuel Friedman writes: > [...] I am at a loss about how I want to do what I want to do. And I, after reading your email, still have no idea what you want to do. But one thing is for certainm this looks wrong: > --custom-type=v/string/string > --custom-type=v/::std::string/::std::string Take a look at the evolution/passthrough example, perhaps it does something similar to what you want to do. Boris