Expression in XML Literal Processing Instruction?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Why doesnt the <?qbxml...?> line work? Is there a way to embed an expression in a processing instruction? If I remove the <?qbxml...?> line, then it produces valid xml. With the line it wont compile.

<pre class="prettyprint lang-vb Dim qbXmlRq2 As XDocument =
<?xml version="1.0"?>
<?qbxml version=<%= QBXMLVer %>?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError
<<%= transType & "QueryRq" %> requestID=<%= ReferenceNumber %>>
<RefNumber><%= ReferenceNumber %></RefNumber>
<IncludeLineItems>1</IncludeLineItems>
<OwnerID>0</OwnerID>
</>
</QBXMLMsgsRq>
</QBXML>[/code]
<br/>

View the full article
 
Back
Top