I'd like to make a document definition where I could validate any xml.
eg:
xml1:
<Envelope>
<Header>
<id>1</id>
<name>Juliano</name>
</Header>
<Body>
<line>line 1</line>
</Body>
</Envelope>
xml2:
<Envelope>
<Contact>
<name>name 1</name>
<phone>55 27 5555-5555</phone>
</Contact>
</Envelope>
docDef:
<Envelope>
</Envelope>
I set the node "Envelope" to open model, but it didn't work. I need a help
ASAP
Please guys, help me and sorry about my english.
tnks
Juliano Costa
Brazil
--
Juliano Costa Silva
Tech Overseas do Brasil
mobile: + 55 27 9932 9049
private mail: julian...@yahoo.com
I want to make sure I understand. If you are wishing to be able to receive
any XML, then you would just need to turn on Pass-through as there would
not be any validation needed if you were to receive any xml without
following any rules. Now the examples that you provide all have the same
root node and then have some different content nodes. If by any xml you
meant that you only wanted to receive data in one of the formats that you
specified as examples, then all you would need to do is create the root
node with each possible record beneath the root. You'd specify that the
records are not required and could be 0 occurences. This should allow you
to receive data in these three formats and allow you to validate to that
document specification.
Sincerely,
Patrick Smith
Developer Support Middleware - Microsoft BizTalk Server
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
© 2002 Microsoft Corporation.
All rights reserved.