Similar Threads:
1.Simple Question about MSXML 6 (and SDK)
will installing this, also install all the previous versions of MSXML ?
(like 5.0, 4.0)
I've already got machines with v4 and v5 on them, so I can't test.
I have an app that utilizes the ProgID's from v4 and also the
functions, like contains(), etc, none of which are available in v3.
I need to know if I have to change all my ProgID's to v6 or not.
2.Simple Question - Simple Answer?
Hello,
Maybe you know howto. I want to have an element which takes a
subelement. Depending on an attribute within this subelement, a second
subelement may have different attributes allowed:
001 <Service>
002 <Header Kind="1"/>
003 <Input Data="asdasd"/>
004 </Service>
005 <Service>
006 <Header Kind="2"/>
007 <Input User="me" App="main"/>
008 </Service>
How can I specify that in an XML Schema? I tried the following:
001 <xsd:complexType name="service">
002 <xsd:choice minOccurs="1" maxOccurs="1">
003 <xsd:element name="Service" type="kind1"/>
004 <xsd:element name="Service" type="kind2"/>
005 </xsd:choice>
006 </xsd:complexType>
007
008 <xsd:complexType name="kind1">
009 <xsd:sequence>
010 <xsd:element name="Header" type="header1"/>
011 <xsd:element name="Input" type="input1"/>
012 </xsd:sequence>
013 </xsd:complexType>
014
015 <xsd:complexType name="kind2">
016 <xsd:sequence>
017 <xsd:element name="Header" type="header2"/>
018 <xsd:element name="Input" type="input2"/>
019 </xsd:sequence>
020 </xsd:complexType>
021
022 <xsd:complexType name="header1">
023 <xsd:attribute name="Kind" use="required"
type="header1Att"/>
024 </xsd:complexType>
025
026 <xsd:simpleType name="header1Att">
027 <xsd:restriction base="xsd:string">
028 <xsd:pattern value="1"/>
029 </xsd:restriction>
020 </xsd:simpleType>
031
032 <xsd:complexType name="input1">
033 <xsd:attribute name="Data" use="required"
type="xsd:string"/>
034 </xsd:complexType>
035
036 <xsd:complexType name="header2">
037 <xsd:attribute name="Kind" use="required"
type="header2Att"/>
038 </xsd:complexType>
039
030 <xsd:simpleType name="header2Att">
041 <xsd:restriction base="xsd:string">
042 <xsd:pattern value="2"/>
043 </xsd:restriction>
044 </xsd:simpleType>
045
046 <xsd:complexType name="input2">
047 <xsd:attribute name="User" use="required"
type="xsd:string"/>
048 <xsd:attribute name="App" use="required"
type="xsd:string"/>
049 </xsd:complexType>
However, doublicate definitions of an element of the same name seem
not to be allowed, which makes sense. But I don't know how to define
this sort of structur e then. Any ideas?
Thanks in advance
Daniel Frey
3.Pretty simple XML fetching question
Hi,
I am trying to do the following with BTS 2002:
1. Pull an XML file down from an IIS machine running SQLXML and exposing the
XML via HTTP
2. Use the BTS adapter for FTP to send that file to a trading partner.
I think I can do #2, piece of cake. For some reason, I can't get my head
around performing step #1. I looked into Receive Functions, but it looks
like the HTTP transport is only usable for documents being POSTed to
BizTalk. I need to GET the XML file via HTTP from a remote web server. I
imagine this must be built into BTS 2002, I just can't find where I would do
this. I hope it's not in Orchestration, because I haven't played with that
much yet.
If it's not built in, what would you recommend I do? I am mainly a C# and
SQL Server programmer, so I could easily make something to pull down the XML
with a batch command line app, but I really want to stick to the native
functions of BTS as much as possible.
Thanks in advance for your advice,
Paul
4.2 simple questions about ado/xml
hi...
1. what is the quickest/most efficient way to get read-only records from an
access table into an xml string? i have the following which works fine. is
this the most efficient way?
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet("Records");
da.Fill (ds, "Record");
return ds.GetXml();
2. after i add/update/delete access record(s) i want the information of the
record(s) in xml. how can i do this?
thanks a lot. :)
5.XML XPath and Simple Stringwriter or Streamwriter Question in Datagrid
Hi, please consider this snippet:
string filename "c:\\inetpub\\wwwroot\\getdirections\\Directions.xml";
XmlDocument doc = new XmlDocument();
doc.Load(filename);
XmlNodeList authorList =
doc.SelectNodes("/NewDataSet/location[locationidID='westside']");
StreamWriter writer = new StreamWriter();
foreach( XmlNode authorNode in authorList )
{
writer.Write( authorNode.OuterXml );
//Response.Write(authorNode.OuterXml);
}
DataSet ds = new DataSet();
ds.ReadXml( writer.ToString() );
CustomerDataGrid.DataSource = ds.Tables["locations"];
CustomerDataGrid.DataBind();
If I use Reponse.Write, this work (not using the datagrid of course).
What I am trying to do is capture that data in the foreach into some
kind of stream or *something* so I can bind it to my dataset. The
query works, the data will return. I just cannot find out how to
assign it to the dataset from a stream.
Thank you for any help.
6. Simple question about ReadXml and WriteXml
7. Simple XML parsing question
8. Simple XML parsing question..