473,762 Members | 6,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I create an XSD document based on an XML file content?

Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:FuelsD oc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
<pcats:Transmis sionHeader>
<pcats:Transmis sionId>20070604 0938</pcats:Transmiss ionId>
<pcats:Transmis sionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmis sionTime>09:38: 19-06:00</pcats:Transmiss ionTime>
<pcats:Transmis sionStatus>orig inal</pcats:Transmiss ionStatus>
<pcats:Transmis sionSender>Apex Oil</pcats:Transmiss ionSender>
<pcats:Transmis sionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPric eInfo>
<pcats:Terminal >
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePref ix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fre sno</pcats:City>
<pcats:State>CA </pcats:State>
<pcats:FuelProd uct><pcats:Effe ctiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effectiv eTime>10:00:00</pcats:Effective Time>
<pcats:FuelProd uctId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2. 240000</pcats:Price>
<pcats:NetChang e>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill

Jun 4 '07 #1
13 8161
I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid XML
message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamespace ="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns="ht tp://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata"
attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCurre ntLocale="true" >
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string " minOccurs="0"
/>
<xs:element name="State" type="xs:string " minOccurs="0"
/>
<xs:element name="Name" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs="0" msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType " form="unqualifi ed"
type="xs:string " />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:string " />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date" type="xs:string "
minOccurs="0" />
<xs:element name="Effective Time" type="xs:string "
minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs="0" />
<xs:element name="NetChange " type="xs:string "
minOccurs="0" />
<xs:element name="FuelProdu ctId" nillable="true"
minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:ColumnNa me="FuelProduct Id_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unqualifi ed" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:FuelsD oc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
<pcats:Transmis sionHeader>
<pcats:Transmis sionId>20070604 0938</pcats:Transmiss ionId>
<pcats:Transmis sionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmis sionTime>09:38: 19-06:00</pcats:Transmiss ionTime>
<pcats:Transmis sionStatus>orig inal</pcats:Transmiss ionStatus>
<pcats:Transmis sionSender>Apex Oil</pcats:Transmiss ionSender>
<pcats:Transmis sionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPric eInfo>
<pcats:Terminal >
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePref ix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fre sno</pcats:City>
<pcats:State>CA </pcats:State>
<pcats:FuelProd uct><pcats:Effe ctiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effectiv eTime>10:00:00</pcats:Effective Time>
<pcats:FuelProd uctId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2. 240000</pcats:Price>
<pcats:NetChang e>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill

Jun 5 '07 #2
Bill Nguyen wrote:
Is it possible to create your won XSD to use with .NET based on an XML
content?
The .NET framework SDK has a tool named xsd.exe which can do that.

And the .NET framework (2.0 and later) has a class XmlSchemaInfere nce
which has a method InferSchema:
<http://msdn2.microsoft .com/en-us/library/system.xml.sche ma.xmlschemainf erence.aspx>


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jun 5 '07 #3
Jerry;
I don't know how you did it, but I got Invalid XML file message when trying
to generate an XSD!

Bill

"Jerry N" <st******@newsg roup.nospamwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid XML
message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamespace ="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns="ht tp://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata"
attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCurre ntLocale="true" >
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string " minOccurs="0"
/>
<xs:element name="State" type="xs:string " minOccurs="0"
/>
<xs:element name="Name" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs="0" msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType " form="unqualifi ed"
type="xs:string " />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:string " />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date" type="xs:string "
minOccurs="0" />
<xs:element name="Effective Time" type="xs:string "
minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs="0" />
<xs:element name="NetChange " type="xs:string "
minOccurs="0" />
<xs:element name="FuelProdu ctId" nillable="true"
minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:ColumnNa me="FuelProduct Id_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unqualifi ed" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:FuelsDo c
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="htt p://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLoca tion="NAXML-FuelPrice15.xsd ">
<pcats:Transmi ssionHeader>
<pcats:Transmi ssionId>2007060 40938</pcats:Transmiss ionId>
<pcats:Transmi ssionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmi ssionTime>09:38 :19-06:00</pcats:Transmiss ionTime>
<pcats:Transmi ssionStatus>ori ginal</pcats:Transmiss ionStatus>
<pcats:Transmi ssionSender>Ape x Oil</pcats:Transmiss ionSender>
<pcats:Transmi ssionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPri ceInfo>
<pcats:Termina l>
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePre fix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fr esno</pcats:City>
<pcats:State>C A</pcats:State>
<pcats:FuelPro duct><pcats:Eff ectiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effecti veTime>10:00:00 </pcats:Effective Time>
<pcats:FuelPro ductId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2 .240000</pcats:Price>
<pcats:NetChan ge>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill


Jun 5 '07 #4
Jerry;
I got an error message regarding 'pcats' namespace is undeclared. It seems
to me that 'pcats' was removed from the xsd file you generated!

Thanks

Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid XML
message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamespace ="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns="ht tp://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata"
attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCurre ntLocale="true" >
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs="0" />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string " minOccurs="0"
/>
<xs:element name="State" type="xs:string " minOccurs="0"
/>
<xs:element name="Name" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs="0" msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType " form="unqualifi ed"
type="xs:string " />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:string " />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="unbo unded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date" type="xs:string "
minOccurs="0" />
<xs:element name="Effective Time" type="xs:string "
minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs="0" />
<xs:element name="NetChange " type="xs:string "
minOccurs="0" />
<xs:element name="FuelProdu ctId" nillable="true"
minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:ColumnNa me="FuelProduct Id_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unqualifi ed" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:FuelsDo c
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="htt p://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLoca tion="NAXML-FuelPrice15.xsd ">
<pcats:Transmi ssionHeader>
<pcats:Transmi ssionId>2007060 40938</pcats:Transmiss ionId>
<pcats:Transmi ssionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmi ssionTime>09:38 :19-06:00</pcats:Transmiss ionTime>
<pcats:Transmi ssionStatus>ori ginal</pcats:Transmiss ionStatus>
<pcats:Transmi ssionSender>Ape x Oil</pcats:Transmiss ionSender>
<pcats:Transmi ssionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPri ceInfo>
<pcats:Termina l>
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePre fix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fr esno</pcats:City>
<pcats:State>C A</pcats:State>
<pcats:FuelPro duct><pcats:Eff ectiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effecti veTime>10:00:00 </pcats:Effective Time>
<pcats:FuelPro ductId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2 .240000</pcats:Price>
<pcats:NetChan ge>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill


Jun 5 '07 #5
Martin;
I used the same XML file and got the same error:

'pcats' is an undeclare namespace. Line 2, position 2.
'pcats' is all over in the XML file.

What Am I missing here?

Thanks

Private Sub SchemaReference ()

Dim dPath = "\\nasserver\ar chive$\FTP\DTN\ DTN_PCATS\"

Dim reader As XmlReader = XmlReader.Creat e(dPath & "testnaxml.xml" )

Dim schemaSet As XmlSchemaSet = New XmlSchemaSet()

Dim schema As XmlSchemaInfere nce = New XmlSchemaInfere nce()

schemaSet = schema.InferSch ema(reader)

For Each s As XmlSchema In schemaSet.Schem as()

s.Write(Console .Out)

Next

End Sub

--- TESTNAXML.XML --------

<?xml version="1.0"?>
<pcats:NAXML-FuelsDoc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
<pcats:Transmis sionHeader>
<pcats:Transmis sionId>20070604 0938</pcats:Transmiss ionId>
<pcats:Transmis sionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmis sionTime>09:38: 19-06:00</pcats:Transmiss ionTime>
<pcats:Transmis sionStatus>orig inal</pcats:Transmiss ionStatus>
<pcats:Transmis sionSender>Apex Oil</pcats:Transmiss ionSender>
<pcats:Transmis sionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPric eInfo>
<pcats:Terminal >
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePref ix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fre sno</pcats:City>
<pcats:State>CA </pcats:State>
<pcats:FuelProd uct><pcats:Effe ctiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effectiv eTime>10:00:00</pcats:Effective Time>
<pcats:FuelProd uctId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2. 240000</pcats:Price>
<pcats:NetChang e>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:NAXML-FuelsDoc>


"Martin Honnen" <ma*******@yaho o.dewrote in message
news:uC******** *****@TK2MSFTNG P06.phx.gbl...
Bill Nguyen wrote:
>Is it possible to create your won XSD to use with .NET based on an XML
content?

The .NET framework SDK has a tool named xsd.exe which can do that.

And the .NET framework (2.0 and later) has a class XmlSchemaInfere nce
which has a method InferSchema:
<http://msdn2.microsoft .com/en-us/library/system.xml.sche ma.xmlschemainf erence.aspx>


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Jun 5 '07 #6
Bill Nguyen wrote:
I used the same XML file and got the same error:

'pcats' is an undeclare namespace. Line 2, position 2.
'pcats' is all over in the XML file.
So your XML sample is not well-formed:
<pcats:FuelsD oc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
it needs a namespace declaration for the prefix pcats e.g.
<pcats:FuelsD oc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:pcats="ht tp://example.com/ns1"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jun 5 '07 #7
Yes, I removed the 'pcats' prefix to get it to work. I forgot to include it
in my original reply. When you add the namespace declaration, I hope this
web page works better.

Jerry

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:eN******** *****@TK2MSFTNG P05.phx.gbl...
Jerry;
I got an error message regarding 'pcats' namespace is undeclared. It seems
to me that 'pcats' was removed from the xsd file you generated!

Thanks

Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
>I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid XML
message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamespac e="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns="h ttp://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="http ://www.w3.org/2001/XMLSchema"
xmlns:msdata=" urn:schemas-microsoft-com:xml-msdata"
attributeFormD efault="qualifi ed" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCurr entLocale="true ">
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs="0 " />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="unb ounded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string " minOccurs="0"
/>
<xs:element name="State" type="xs:string "
minOccurs="0 " />
<xs:element name="Name" minOccurs="0"
maxOccurs="unb ounded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs="0 " msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType " form="unqualifi ed"
type="xs:strin g" />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:strin g" />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="unb ounded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date"
type="xs:strin g" minOccurs="0" />
<xs:element name="Effective Time"
type="xs:strin g" minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs="0 " />
<xs:element name="NetChange " type="xs:string "
minOccurs="0 " />
<xs:element name="FuelProdu ctId" nillable="true"
minOccurs="0 " maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:ColumnN ame="FuelProduc tId_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unqualif ied" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2******* *********@TK2MS FTNGP04.phx.gbl ...
>>Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:FuelsD oc
xmlns="http ://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="ht tp://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLoc ation="NAXML-FuelPrice15.xsd ">
<pcats:Transm issionHeader>
<pcats:Transm issionId>200706 040938</pcats:Transmiss ionId>
<pcats:Transm issionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transm issionTime>09:3 8:19-06:00</pcats:Transmiss ionTime>
<pcats:Transm issionStatus>or iginal</pcats:Transmiss ionStatus>
<pcats:Transm issionSender>Ap ex Oil</pcats:Transmiss ionSender>
<pcats:Transm issionAgency>DT N Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPr iceInfo>
<pcats:Termin al>
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePr efix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>F resno</pcats:City>
<pcats:State> CA</pcats:State>
<pcats:FuelPr oduct><pcats:Ef fectiveDate>200 7-06-04</pcats:Effective Date>
<pcats:Effect iveTime>10:00:0 0</pcats:Effective Time>
<pcats:FuelPr oductId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price> 2.240000</pcats:Price>
<pcats:NetCha nge>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill



Jun 5 '07 #8
Jerry;
Where do I need to add the 'pcats' namespace declaration?
THanks
Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
Yes, I removed the 'pcats' prefix to get it to work. I forgot to include
it in my original reply. When you add the namespace declaration, I hope
this web page works better.

Jerry

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:eN******** *****@TK2MSFTNG P05.phx.gbl...
>Jerry;
I got an error message regarding 'pcats' namespace is undeclared. It
seems to me that 'pcats' was removed from the xsd file you generated!

Thanks

Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:%2******* ********@TK2MSF TNGP05.phx.gbl. ..
>>I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid
XML message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamespa ce="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns=" http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="http ://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="htt p://www.w3.org/2001/XMLSchema"
xmlns:msdata= "urn:schema s-microsoft-com:xml-msdata"
attributeForm Default="qualif ied" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCur rentLocale="tru e">
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs=" 0" />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs=" 0" />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs=" 0" />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs=" 0" />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs=" 0" />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs=" 0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="un bounded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string "
minOccurs=" 0" />
<xs:element name="State" type="xs:string "
minOccurs=" 0" />
<xs:element name="Name" minOccurs="0"
maxOccurs="un bounded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs=" 0" msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType " form="unqualifi ed"
type="xs:stri ng" />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:stri ng" />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="un bounded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date"
type="xs:stri ng" minOccurs="0" />
<xs:element name="Effective Time"
type="xs:stri ng" minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs=" 0" />
<xs:element name="NetChange " type="xs:string "
minOccurs=" 0" />
<xs:element name="FuelProdu ctId"
nillable="tru e" minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:Column Name="FuelProdu ctId_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unquali fied" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2****** **********@TK2M SFTNGP04.phx.gb l...
Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:

<?xml version="1.0"?>
<pcats:Fuels Doc
xmlns="htt p://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="h ttp://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLo cation="NAXML-FuelPrice15.xsd ">
<pcats:Trans missionHeader>
<pcats:Trans missionId>20070 6040938</pcats:Transmiss ionId>
<pcats:Trans missionDate>200 7-06-04</pcats:Transmiss ionDate>
<pcats:Trans missionTime>09: 38:19-06:00</pcats:Transmiss ionTime>
<pcats:Trans missionStatus>o riginal</pcats:Transmiss ionStatus>
<pcats:Trans missionSender>A pex Oil</pcats:Transmiss ionSender>
<pcats:Trans missionAgency>D TN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelP riceInfo>
<pcats:Termi nal>
<pcats:Nam e identType="Plan tNumber" ident="1070">
<pcats:NameP refix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City> Fresno</pcats:City>
<pcats:State >CA</pcats:State>
<pcats:FuelP roduct><pcats:E ffectiveDate>20 07-06-04</pcats:Effective Date>
<pcats:Effec tiveTime>10:00: 00</pcats:Effective Time>
<pcats:FuelP roductId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price >2.240000</pcats:Price>
<pcats:NetCh ange>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>

Thanks

Bill





Jun 5 '07 #9
Martin Honnen had an example buried in his message. I added it to the
FuelsDoc declarations as shown below. I also tested it on the web page
(http://www.xmlforasp.net/codebank/sy...enerator.aspx).

<?xml version="1.0"?>
<pcats:FuelsD oc
xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:pcats="ht tp://example.com/ns1"
xsi:schemaLocat ion="NAXML-FuelPrice15.xsd ">
<pcats:Transmis sionHeader>
<pcats:Transmis sionId>20070604 0938</pcats:Transmiss ionId>
<pcats:Transmis sionDate>2007-06-04</pcats:Transmiss ionDate>
<pcats:Transmis sionTime>09:38: 19-06:00</pcats:Transmiss ionTime>
<pcats:Transmis sionStatus>orig inal</pcats:Transmiss ionStatus>
<pcats:Transmis sionSender>Apex Oil</pcats:Transmiss ionSender>
<pcats:Transmis sionAgency>DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:FuelPric eInfo>
<pcats:Terminal >
<pcats:Name identType="Plan tNumber" ident="1070">
<pcats:NamePref ix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City>Fre sno</pcats:City>
<pcats:State>CA </pcats:State>
<pcats:FuelProd uct><pcats:Effe ctiveDate>2007-06-04</pcats:Effective Date>
<pcats:Effectiv eTime>10:00:00</pcats:Effective Time>
<pcats:FuelProd uctId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Price>2. 240000</pcats:Price>
<pcats:NetChang e>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>
"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:u1******** *****@TK2MSFTNG P05.phx.gbl...
Jerry;
Where do I need to add the 'pcats' namespace declaration?
THanks
Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
>Yes, I removed the 'pcats' prefix to get it to work. I forgot to include
it in my original reply. When you add the namespace declaration, I hope
this web page works better.

Jerry

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:eN******* ******@TK2MSFTN GP05.phx.gbl...
>>Jerry;
I got an error message regarding 'pcats' namespace is undeclared. It
seems to me that 'pcats' was removed from the xsd file you generated!

Thanks

Bill
"Jerry N" <st******@newsg roup.nospamwrot e in message
news:%2****** *********@TK2MS FTNGP05.phx.gbl ...
I've used this XSD generator and like the output:
http://www.xmlforasp.net/codebank/sy...Generator.aspx

Here's the output (after I made some minor changes to make it a valid
XML message):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="FuelsDoc"
targetNamesp ace="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:mstns= "http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns="htt p://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xs="ht tp://www.w3.org/2001/XMLSchema"
xmlns:msdata ="urn:schema s-microsoft-com:xml-msdata"
attributeFor mDefault="quali fied" elementFormDefa ult="qualified" >
<xs:element name="FuelsDoc" msdata:IsDataSe t="true"
msdata:UseCu rrentLocale="tr ue">
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="Transmiss ionHeader">
<xs:complexType >
<xs:sequence>
<xs:element name="Transmiss ionId" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionDate" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionTime" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionStatus" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionSender" type="xs:string "
minOccurs="0 " />
<xs:element name="Transmiss ionAgency" type="xs:string "
minOccurs="0 " />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuelPrice Info">
<xs:complexType >
<xs:sequence>
<xs:element name="Terminal" minOccurs="0"
maxOccurs="u nbounded">
<xs:complexType >
<xs:sequence>
<xs:element name="City" type="xs:string "
minOccurs="0 " />
<xs:element name="State" type="xs:string "
minOccurs="0 " />
<xs:element name="Name" minOccurs="0"
maxOccurs="u nbounded">
<xs:complexType >
<xs:sequence>
<xs:element name="NamePrefi x" type="xs:string "
minOccurs="0 " msdata:Ordinal= "0" />
</xs:sequence>
<xs:attribute name="identType "
form="unqual ified" type="xs:string " />
<xs:attribute name="ident" form="unqualifi ed"
type="xs:str ing" />
</xs:complexType>
</xs:element>
<xs:element name="FuelProdu ct" minOccurs="0"
maxOccurs="u nbounded">
<xs:complexType >
<xs:sequence>
<xs:element name="Effective Date"
type="xs:str ing" minOccurs="0" />
<xs:element name="Effective Time"
type="xs:str ing" minOccurs="0" />
<xs:element name="Price" type="xs:string "
minOccurs="0 " />
<xs:element name="NetChange " type="xs:string "
minOccurs="0 " />
<xs:element name="FuelProdu ctId"
nillable="tr ue" minOccurs="0" maxOccurs="unbo unded">
<xs:complexType >
<xs:simpleConte nt
msdata:Colum nName="FuelProd uctId_Text" msdata:Ordinal= "1">
<xs:extension base="xs:string ">
<xs:attribute name="identType "
form="unqual ified" type="xs:string " />
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2***** ***********@TK2 MSFTNGP04.phx.g bl...
Is it possible to create your won XSD to use with .NET based on an XML
content?
For example the one below:
>
<?xml version="1.0"?>
<pcats:Fuel sDoc
xmlns="http ://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaL ocation="NAXML-FuelPrice15.xsd ">
<pcats:Tran smissionHeader>
<pcats:Tran smissionId>2007 06040938</pcats:Transmiss ionId>
<pcats:Tran smissionDate>20 07-06-04</pcats:Transmiss ionDate>
<pcats:Tran smissionTime>09 :38:19-06:00</pcats:Transmiss ionTime>
<pcats:Tran smissionStatus> original</pcats:Transmiss ionStatus>
<pcats:Tran smissionSender> Apex Oil</pcats:Transmiss ionSender>
<pcats:Tran smissionAgency> DTN Integrated
Services/dtnDataConnect</pcats:Transmiss ionAgency>
</pcats:Transmiss ionHeader>
<pcats:Fuel PriceInfo>
<pcats:Term inal>
<pcats:Na me identType="Plan tNumber" ident="1070">
<pcats:Name Prefix>Frsn KMEP</pcats:NamePrefi x>
</pcats:Name>
<pcats:City >Fresno</pcats:City>
<pcats:Stat e>CA</pcats:State>
<pcats:Fuel Product><pcats: EffectiveDate>2 007-06-04</pcats:Effective Date>
<pcats:Effe ctiveTime>10:00 :00</pcats:Effective Time>
<pcats:Fuel ProductId identType="Ultr a Low Sulfur CARB
#2">0402</pcats:FuelProdu ctId>
<pcats:Pric e>2.240000</pcats:Price>
<pcats:NetC hange>.040000</pcats:NetChange >
</pcats:FuelProdu ct>
</pcats:Terminal>
</pcats:FuelPrice Info>
</pcats:FuelsDoc>
>
Thanks
>
Bill
>
>
>




Jun 5 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1383
by: Snke | last post by:
How can use ASP to read in the ms-word document files the content, then copy the content to access? I attempt ("word.application") have opened with CreateObject to word document only. Can I use "Find" function to search ms-word content in ASP? Thanks.
2
8225
by: Tom | last post by:
Anytime someone wants to open a document, they have to first save it to disk. They cannot simply choose "open". If a user attempts to open the document, they are met with the error message "there was an error opening the document the file cannot be found". Here is my C# ASP.NET web code. I am running IE 6.0. Can anyone advise. ... First I create the file and then use Response object to open it. Response.ContentType="application/pdf";...
4
6313
by: Fabian | last post by:
Hi I want to change the content of text file. I use an StreamReader to read but I can´t use a StreamWriter for the same Stream. What I must do to implement content changing? Thanks for help Fabian
0
4703
by: Peter | last post by:
I am having a problem reading an Excel file that is XML based. The directory I am reading contains Excel files that can be of two types. Either generic Microsoft based or XML based. I am reading the Microsoft based files with an OleDbDataAdapter. Then filling the contents of the first worksheet into a dataset. However when I try to add the XML based file to my dataset using an XmlTextReader I can never seem to get it to save to a...
1
4177
by: GaryB | last post by:
Hi, (Posted this in scripting.wsh before I realised that it might be better placed here - sorry if you;ve got two copies) I want my (IE) Intranet users to be able to create a new Word document based on a specified template. The following works, but I would like to be able to pass the filename as a parameter, as there are often multiple documents on the same page:
0
1686
by: peter | last post by:
Hi All, I have a template with some VBA code behind and some controls on it such as combo boxes. When I try to create a new document based on this template from C# code it opens fine but the controls are in design mode and the VBA code behind doesnt run. oDoc = oWord.Documents.Add(ref oTemplate, ref oMissing, ref oMissing, ref oMissing);
1
4520
by: tofu.captain | last post by:
I have PDFs saved in a SQL 2005 server as BLOBs. I would like to extract the BLOBs and either: 1. create a PDF file on the hard disk or 2. open/stream the PDF into the application I am using a VB.net winform (not a web form). How would I go about doing this? I use CutePDF to initially convert a
1
32947
by: ujjwaltrivedi | last post by:
Hey guys, Can anyone tell me how to create a text file with Unicode Encoding. In am using FileStream Finalfile = new FileStream("finalfile.txt", FileMode.Append, FileAccess.Write); ###Question: Now this creates finalfile.txt with ANSI Encoding ...which is a default. Either tell me how to change the default or how to create a
0
2701
by: Thomas | last post by:
How do you create an XML document based on an XML Schema? I have an XML Schema that defines several primary XML document types (i.e. the top-level element contains 4 complex type child elements in a choice group). I used xsd.exe to generate classes to simplify setting the values in the instance objects. My question is how do I serialize the objects to an XML document based on a specific child element referenced in the XML schema's...
1
2811
by: Thomas | last post by:
Does anyone have a best practices recommendation on writing a valid XML document based on a 3rd party XML schema? I have a working solution but I would like to know if anyone has a better approach. My solution: 1) Pull the data from the database into datatables (in my case, this is DB2). 2) Validate all required data columns (I've written a method that iterates through all the datatables rows and throws an exception if
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.