sp_xml_preparedocument and OPENXML
From: rob (rwc1960_at_bellsouth.net)
Date: 05/07/04
- Next message: Alex Molochnikov: "RDBMS Report Generator - beta testers needed"
- Previous message: Michael Cheng [MSFT]: "RE: sqlxml3 soap error"
- Next in thread: Steve Kass: "Re: sp_xml_preparedocument and OPENXML"
- Reply: Steve Kass: "Re: sp_xml_preparedocument and OPENXML"
- Reply: Dan Guzman: "Re: sp_xml_preparedocument and OPENXML"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 22:46:51 -0400
New to xml..
I am trying to read in A REAL xml file using the sp_xml_preparedocument and
OPENXML statement as shown in BOL. I am not trying to read in a PLAY xml
file with the stuff at the top stripped out ( i.e., <?xml version=...
<UpdateProcee xmlns= etc.)
I cannot seem to make it work unless I strip out these the top 2 lines and
replace them with a <ROOT> tag...
I noticed all the examples in published books, as well as BOL, conveniently
strip these lines and replace them with <ROOT>. How do you read in real
XML files ? Real XML files do not have the tag <ROOT> in the first line,
they begin with <?xml version=....
I do not get any errors, it just returns 0 rows...
Thanks !
Are there easier ways to bring in an XML document into a table using
transact SQL, or VBscript within a DTS package ?
- Next message: Alex Molochnikov: "RDBMS Report Generator - beta testers needed"
- Previous message: Michael Cheng [MSFT]: "RE: sqlxml3 soap error"
- Next in thread: Steve Kass: "Re: sp_xml_preparedocument and OPENXML"
- Reply: Steve Kass: "Re: sp_xml_preparedocument and OPENXML"
- Reply: Dan Guzman: "Re: sp_xml_preparedocument and OPENXML"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|