I created a schema and is ready to implement this schema as customXml Markup within a wordprocessingML maindocument part, the problem is how can i validate those customXML markups with my schema?
since it's custom, SDK provides no functionality to validate it.
I'm just curious, you should make sure the markup is generated following your own schema. Why do you need to validate them? Other people can generate the markup? Thanks!
yes, my custom xml may be read & generated by different apps,such as an aspx page which may be often modified and requires a neat code, and has a relatively complex structure and restrictions must be carefully handled. now it seems that one thing that i can do is to extract and translate those custom "xml markups" into a real XML DOM and validate it with my schema, and then go back to process the embedded inner contents within these markups. It's a boring thing...
a customXml Markup validation mechanism may suggest a transparent view of the customXML content which is embedded within the wordprocessingML,i think it may be important to facilitate inter-operation among multiple schemas, as may be a funny architecture, if such a mechanism(with extended model and functionality) is provided directly from the SDK.
I would be pleased to see a model amendment be appended to the SDK with customXML markup validation and customDOM support, when the developers could operate XML within XML while these XMLs are actually isolated by <customXML> simply(rather than being put into an isolated part) and meanwhile sharing contents with wordprocessingML as well. Let's call it what? 3D XML or noodle XML? lol, anyway it's worthy of discussing...
My point is: Since it's Custom,it shall be FREE,while since it's XML,it shall be well-managed & validated. Don't leave wild grass growing in the corner which is built under the name of the decent XML. Otherwise, why customXML?
Hi Xiaoyuvax,
Your thoughts are very interesting, I'll think about it and discuss with you later maybe:)
There's another thing I'm curious about is how do you use the validation feature. are you use it after you generate the document, or needs to validate the document/part in debugging mode? How should the error message help you to locate the errors in the documents? Thanks:)
Hi there,
The current validation feature with CTP2 can validate a whole package, part, element, also document in string or stream. To narrow down the validation scope is one way, the other is how to provide sufficient/effective infomation to locate the errors, what you mentioned as well. Is the XPath information of the errors helpful to you? I fyou use validation during debugging, I don't think it's important, right?
My understanding of your requirements of extending validation is 1) validate custom XML markup together with WordprocessingML; 2) validate part of the custom XML markup. Is that right?
Besides, I'm interested in your "later operations" in your description. what kind of manipulations are you doing on the documents? what kind of solution are you building around SDK? what's your user scenario? what's the content in the documents ? how are the final documents used typically (send/email, print, view, download, archive...)? are you using some other technologies (sharepoint, silverlight, vsto...)? any feedback is welcome.