'宣言
Public Sub LoadXML( _ ByVal xmlFragment As String _ )
public void LoadXML( string xmlFragment )
パラメータ
- xmlFragment
- XMLドキュメントにロードする有効なXMLフラグメント文字列を指定します。
'宣言
Public Sub LoadXML( _ ByVal xmlFragment As String _ )
public void LoadXML( string xmlFragment )
GrapeCity.ActiveReports.Data.XMLDataSource ds = new GrapeCity.ActiveReports.Data.XMLDataSource(); ds.ValidateOnParse = true; ds.FileURL = null; ds.RecordsetPattern = "//Customer"; ds.LoadXML("<Order><Customer><Name>John Doe</Name><Cardnum>131 131 131 131</Cardnum><Manifest><Item><ID>204</ID><Title>Advanced VB</Title><Quantity>1</Quantity><UnitPrice>$10.75</UnitPrice></Item></Manifest><Receipt><Subtotal>$23.75</Subtotal><Tax>$2.43</Tax></Receipt></Customer></Order>");
Dim ds As New GrapeCity.ActiveReports.Data.XMLDataSource ds.FileURL = Nothing ds.ValidateOnParse = True ds.RecordsetPattern = "//Customer" ds.LoadXML("<Order>" & _ "<Customer>" & _ "<Name>John Doe</Name>" & _ "<Cardnum>131 131 131 131</Cardnum>" & _ "<Manifest>" & _ "<Item>" & _ "<ID>204</ID>" & _ "<Title>Advanced VB</Title>" & _ "<Quantity>1</Quantity>" & _ "<UnitPrice>$10.75</UnitPrice>" & _ "</Item>" & _ "</Manifest>" & _ "<Receipt>" & _ "<Subtotal>$23.75</Subtotal>" & _ "<Tax>$2.43</Tax>" & _ "</Receipt>" & _ "</Customer>" & _ "</Order>")