all groups > dotnet xml > october 2006
Filter by week: 1 2 3 4 5
invalid token error
Posted by John Hopper at 10/31/2006 11:49:01 AM
I have an xml document, created using xmlTextWriter,
at(http://www.supremecourtofohio.gov/rss/docketitems/2006-1942.xml) that
won't validate. It fails with "invalid token, document not well formed". Then
if I open the same file in notepad, save it without changing anything, and
try again, i... more >>
XmlValidatingReader in v1.1
Posted by Phil Hobgen at 10/31/2006 12:12:02 AM
Hi,
I am using the XmlValidatingReader Class in VS.Net 2003 (targeting dotNet
v1.1) to validate an xml message against a set of schemas.
Within the schema a type is defined as follows
<xs:simpleType name="atypename">
<xs:restriction base="xs:token">
<xs:pattern value="\w{1,6}"/>
... more >>
what is best way to talk to https webpages within .net? any good librarys for talking to https websites?
Posted by Daniel at 10/30/2006 3:46:06 PM
what is best way to talk to https webpages within .net? any good librarys
for talking to https websites?
... more >>
Deserializing xml into an object using xsl:copy-of
Posted by Kenny D at 10/30/2006 2:09:00 PM
Sample input XML...
<Publication>
<FilingMetadata>
<Id>38EA51240E6643208DB1B6D52F779A82</Id>
<Cycle>BC</Cycle>
</FilingMetadata>
<PublicationComponent Role="Main" MediaType="Text">
<TextContentItem>
<Language>en-us</Language>
<Da... more >>
How to write XML with any name and type?
Posted by Demorsy at 10/30/2006 7:20:01 AM
Disappointed, this is not the first time I'm posting this kind of a request
for help, but no helpful answer was posted yet.
I'll try make my question as clear as I can:
(1) I wish to write an XML file. this file will contain any number of
parameters to be used in my C# code as database.
... more >>
2 XML nodes, 1 xslt
Posted by Jeff Uchtman at 10/29/2006 9:03:04 PM
Can I draw from 2 XML sources, the structure is exactly the same execpt for
data contained into 1 xslt using math to add some structrure, and displaying
others as node 1 and node 2? This data is XML from a Barracuda Spam server
that has grown to 2.
Here is a snip from my form draw.
Impo... more >>
Schemas, imports and namespaces
Posted by Darrell Plank at 10/29/2006 8:22:16 PM
I'm a real XML novice, but my ultimate goal here is to get a workable schema
for the GEDCOM XML format as spec'ed out here:
http://www.familysearch.org/GEDCOM/GedXML60.pdf
It's a proposed XML format for genealogical records. They include a DTD in
the spec but sadly its incomplete in that ... more >>
XML, XSL and ASP.NET
Posted by Glenn at 10/27/2006 8:14:01 PM
Hi folks,
My problem is this...
I am having an issue with whitespace between XML tags that occurs when I
transform the XSL output to the browser via ASP.NET leaving me with
unexpected results.
Read on if you dare.
I have a XML file (datum.xml) that contains numeric values as shown he... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can I fake a parent element in a serializable class
Posted by sandycormie NO[at]SPAM gmail.com at 10/27/2006 2:49:25 PM
Hello
I suspect the answer is going to be no, but...
I have a class that contains a property defined as an abstract class.
I would like to control the format of the generated XML to include a
container element that isn't actually implemented in my class.
This is best described by an examp... more >>
ReadElementContentAsXXX
Posted by B at 10/27/2006 6:59:01 AM
I am using the XMLReader to read an XML document with a large image embedded
inside of it. By large, I mean +150MB. When I use the
ReadElementContentAsBase64 method to read the element content, the page file
usage peaks and eventually the system throws a System.OutOfMemoryException.
Does ... more >>
Attribute targetNamespace does not match the designated namespace
Posted by fedrok at 10/27/2006 6:55:02 AM
Hi you all.
I've got a problem validating an XML file using the following Schema (I'll
post only the beginning of this):
----------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://tempuri.org/ae" elementFormDef... more >>
the find in a dataview???
Posted by Raul at 10/26/2006 9:01:47 PM
My problem is the following one it is in a datagridview I am showing some
data and I would like to locate me in a certain line.
Ex. Locate me in a line that has the telephone 999 and this orderly one for
name
ID - NAME - TELEPHONE
1 - AAA - 111
2 - BBB - 444
3 - CCC - 555
4 - DDD - 666... more >>
XmlTextReader ReadChars can enter an infinate loop when reading st
Posted by Rick at 10/26/2006 1:49:02 PM
The following code will enter an infinate loop when in ReadChars. I can only
make it happen when reading a Stream and with this particular XML. If I use
the ReadInnerXml call rather than my own ReadElementBodyAsXml the code works,
but is less efficent. ReadElementBodyAsXml is required by my... more >>
Serialize XML with Qualified or Prefixed Root Element
Posted by Hone at 10/26/2006 12:59:02 PM
I'm trying to serialize/deserialize the XML for an RSS 1.0 Feed (i.e. RDF)
and the root element, as required by the standard, looks like this:
<rdf:RDF ...>
</rdf:RDF>
However, I've tried everything using XmlRootAttribute, XmlTypeAttribute,
XmlSerializerNamespacesAttribute, etc, and not... more >>
XML Schema??
Posted by fenoxxx NO[at]SPAM gmail.com at 10/26/2006 7:20:16 AM
Hi everybody,
i can't crete a dataset in .NET starting from XML file above:
<?xml version="1.0" encoding="UTF-8" ?>
<msg Name="Status">
<section Name="Header">
<data Name="A" Type="Int" Size="2">10</data>
<data Name="B" Type="Int" Size="4">100000</data>
<data Name="C" Type="Int" Size="... more >>
transforming attributes into elements
Posted by Jakub.Bednarczuk NO[at]SPAM gmail.com at 10/24/2006 6:49:41 AM
Hallo everybody
I have the problem with getting attributes values and also attributes
names. I am reading an xml file with DOM. Lets see an example:
file I read
<root>
<Def></Def>
<Elements>
<Element att1="1" att2="2" att3="3"> //Some attributes are
optional
.......
... more >>
Newbie Writing XML File Using datasets C#
Posted by andydunning NO[at]SPAM btinternet.com at 10/24/2006 5:33:46 AM
Hi All,
As a newbie to c# .net I' after some advice on how to write an xml file
in a specific format from a dataset.
I have successfully written a file but the structure is wrong.
Essentially I have two datasets one containing Batch Data and another
containing the Invoice Data.
I need ... more >>
XmlWriter / XmlTextWriter corrupt chars...
Posted by Mat at 10/24/2006 3:44:32 AM
Hi all.
I can't understand the problem with my code...
I wrote a simple test function to write an XML document and in the
resulting file I find 3 strange chars before the document starting.
=3D=3D=3D CODE =3D=3D=3D
using( XmlTextWriter w =3D new
XmlTextWriter("test2.xml",System.Text.Encodi... more >>
browser detection and redirection
Posted by jaydev at 10/23/2006 1:30:16 PM
Hi,
I am looking for code to detect and redirect to the corresponding
browser download page if the clients uses old version, could anyone
have a sample code for this?
I want to use the following version browser only, if they are other
types I need to redirect to there download page.
Internet... more >>
xpath expression to select by absolute index
Posted by tomek.romanowski NO[at]SPAM gmail.com at 10/23/2006 9:36:23 AM
Hello everybody !
I'm looking for a while some way to select subnode element by its
position within whole document rather then in its parent.
Let's consider following xml:
<root>
<parent>
<subnode id="x1" value="y1"></subnode>
<subnode id="x2" value="y2"></subnode>
<subnode id="... more >>
Special Characters not resolving
Posted by Trac Bannon at 10/23/2006 9:11:02 AM
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes
are resolved but the 5 special XML entities are not.
How can I force those 5 special character types to be translated?
... more >>
How do I find the MSXML version?
Posted by Sharon at 10/23/2006 5:38:02 AM
How can I find what MSXML version I have installed?
--
Thanks
Sharon... more >>
XML format enforcement
Posted by Sharon at 10/23/2006 4:33:01 AM
I wish to write some kind of XML format enforcer like DTD, XSD or other that
can do the following:
(1) Any element and node must have Type attribute that can be read as data
type by the parser.
(1) Any element and node may have (optional) four more attributes.
I XML enforcer should allow an... more >>
XML to WINWORD
Posted by Danny De Koster at 10/23/2006 12:00:00 AM
Hi all,
Is there a way to create an xml-file and then read it in winword?
Where can I find information on this topic??
Thanks for any tips
Danny
... more >>
Load DiffGram to String
Posted by Paul Goldmann at 10/21/2006 6:46:27 PM
Hi,
is there a way how to get a DiffGram from a dataset and save it to a string?
Thanks for any advice
Paul
... more >>
XML Creating nodes
Posted by csgraham74 at 10/21/2006 1:15:00 PM
Hi there,
just wondering if someone could help me. Ive written some code in
vb.net to create the following xml.
<menu>
<menuItem>
<text>Political Update</text>
</menuItem>
<subMenu />
<menuItem>
<text>sub categoruy 1</text>
<url>1</url>
</menuItem>
<menuItem>
<text>sub categoruy 2</... more >>
use of XSD
Posted by Jurjen de Groot at 10/20/2006 6:23:26 PM
I am creating an XML file in a dotnet 1.1 winforms app. (actually a service)
The XML is validated by an XSD wich is supplied by an external party and has
to be used...
As an example I have a tag Married wich is defined in the XSD like :
<xsd:element name="Married" type="YesNoType" minOccur... more >>
Help: Pre-poulating a web form with xml data
Posted by captain_gni NO[at]SPAM yahoo.com at 10/19/2006 2:11:26 PM
Hi All, New to asp.net here. Been combing google since monday trying to
find the right solution. Most of the solutions are good and reflect the
same examples in the .net books I have but xml is sketchy to me and
this isn't you typical real world project.
Here's the scenario. I query an api via... more >>
Using variables to select nodes by attribute for an XSLT template
Posted by Andy at 10/19/2006 12:07:39 PM
Hi, Does anyone know why when I hardcode a literal to filter a subset
of nodes by a particular attribute value, my template processes the
correct subset.
But, when I use a variable that is set to the same value, my template
processes everything in the document.
<root SELCAT='1'>
<skills... more >>
Encode(quote) attribute value
Posted by Oleg.Ogurok NO[at]SPAM gmail.com at 10/19/2006 10:37:41 AM
Hi there,
I need to encode the value of an XML attribute, e.g.
string myXml = "<element myAttr=\"" +
encodeURIComponent("my \"value") + "\"" ....";
Is there an equivalent of encodeURIComponent() javascript function as
part of the framework (1.1 or 2.0) which will encode speci... more >>
specifying the encoding attribute explicitly
Posted by John Hopper at 10/19/2006 10:15:03 AM
Hello,
Using code below to create an xml file, how do I specifiy utf-8 encoding in
the root element, ie create "<?xml version="1.0" encoding="utf-8"?>
Thanks!
-------------------------------------------
Dim xmlWriter As New
XmlTextWriter("C:\inetpub\wwwroot\rss2\20061019\test.xml", N... more >>
Problema con Load XML
Posted by Lazarte Federico at 10/19/2006 8:44:51 AM
Hello.
I need to resolve this problem whit the xml below:
<?xml
version=\"1.0\"encoding=\"ISO-8859-1\"?><sms><idMensaje>1234</idMensaje><esmeID>4</esmeID><telefono>4444</telefono><shortMessage>pruebapost</shortMessage><fechaIngreso>2006-10-1612:00:01</fechaIngreso></sms>
The error ir "Expect... more >>
Incomplete Escaping Functionality??
Posted by Arthur Dent at 10/18/2006 2:37:56 PM
Hello All...
I am in an app that needs to write out an XML document for transmittal to an
outside organization. All good and fine... I create the XmlDocument object,
append all my nodes, and values etc etc... and it all works.
Now I go to save the file... I tried two methods...
MyXmlDocum... more >>
XSL/XML Select and Option HTML tags
Posted by Andy at 10/18/2006 2:09:55 PM
Hi, I'm trying to render tabular data in an HTML document using XSL to
transform XML data into an HTML table. Some of the tabular data
appears as droplists (implemented by the HTML Select and Option tags).
All the droplists have the same option entries that a user can choose
from.
Is there ... more >>
Best way to Post Soap Message to a non-WSDL Web Service
Posted by TexasAggie96 at 10/18/2006 9:04:06 AM
I am a VB.NET application developer that has used WSDL Web services
before but now I am tasked with sending data to a non-WSDL web service
by creating a SOAP message in an XML package and POSTing to the web
service.
I have never done this before and would like to know if anyone has an
idea on... more >>
Deserializing an Object from XML Using Schema
Posted by Veilchen at 10/18/2006 5:31:01 AM
Hi,
I need to deserialize an existing object (not generate its code) from a
serialized XML file.
The only information I have about how the deserialization method is an input
XML schema (which can vary) associated with the XML file containing the
serialized object data. Therefore pre-defin... more >>
Cant uninstall Visual Studio 2003
Posted by Count in Excel at 10/17/2006 8:41:02 AM
I have this really weird pop message everytime i m trying to uninstall Visual
Studio 2003.
The message said "Set up is unable to determine the valid order for
installation. See the error log for the details"
If anyone knows how do fix this error message and help me to remove Visual
Studi... more >>
use XmlDataDocument load from an URL with username password
Posted by Alcibiades NO[at]SPAM gmail.com at 10/17/2006 3:48:51 AM
I have a piece of code to read a xml file from the web and put it into
a variable in SSIS, but i don't know how to get it if it's username and
password protected:
URL = "http://www.mysite.com/setup.xml"
xmlDoc = New XmlDataDocument
xmlDoc.Load(URL)
Anyone can help m... more >>
Inheritied Serializable Classes (OOP Design)
Posted by Techno_Dex at 10/16/2006 5:02:01 PM
I have base classes defined in a hierarchy structure which all have
XMLElementAttributes on them and marked as Serializable. I then have
classes which inherit from the base classes and hide some of the base class
properties using the "new" keyword in order to redefine the schema. Every
tim... more >>
Deserialize Business Object
Posted by Redowl at 10/16/2006 8:45:03 AM
Hi,
I am having an issue deserializing a business object from a SQL stored
procedure. I have created the class using the XSD tool and the resulting
XMLDATA schema but when I try to create the object I get an error message
<[Object] xmlns=''> was not expected.
As the XML being returned i... more >>
xml into collections
Posted by dnvhari at 10/15/2006 9:32:22 PM
Hi all,
we have an xml file.
Based on this file we have to generate menu. This xml file changes
every day.
We are loading the xml file into the application memory and
transforming the data of xml file into collections (using classes).
1. Pumping the whole xml data into collections is the ... more >>
XmlSchema not loading from XmlTextReader
Posted by Steve at 10/15/2006 11:43:01 AM
For some reason, the schema seems to be empty every time it's loaded. Does
anyone have any ideas?? Thanks!
Here's the code:
Dim xsd As System.Xml.Schema.XmlSchema
Dim io As New System.IO.FileStream(xsdFileName, System.IO.FileMode.Open,
System.IO.FileAccess.Read)
Dim x As New System.Xml.X... more >>
How to read an XML file that contains a namespace?
Posted by Pradeep at 10/14/2006 5:44:26 PM
..NETters,
This may be a simple question. However, I cannot figure out what I am
doing wrong. Would appreciate if someone can help me.
Here is my Sample.xml:
<Report>
</Report>
Here is my code to read it:
XmlDocument doc = new XmlDocument();
doc.Load("Sample.xml");
XPathNavigato... more >>
Serialization of array of structs
Posted by Chris Ashley at 10/13/2006 7:05:44 AM
I have an array of structs which I am serializing. Is there a tag I can
use to change the name of the struct members in the output XML? I know
I can change the root node name with:
[XmlArrayAttribute("LogInfo")]
private LogInfo[] m_arrLogInfo;
But how do I change the name of the mem... more >>
xmlnode question
Posted by NS at 10/12/2006 5:19:57 PM
Hello,
I'm new to xml and I have a question:
I try to do the following
Dim doc As New XmlDocument
doc.LoadXml("<Request><Root><Requestor name='' /><FlowData flowstatus=''
/><Products><productdate productid='' /></Products></Root></Request>")
Dim node As XmlNode =
doc.SelectSingl... more >>
Creating sub nodes in an existing document from individual XML str
Posted by Todd Beaulieu at 10/12/2006 1:57:02 PM
I want to build an XML document from a number of sub documents. As I call
objects in my data structure, each would return their own ToXml(), which I
want to append to the main document that I'm building.
I can't figure out how to create a Node from an XML string. Do I need to
return the ent... more >>
XPath on an XmlDataDocument
Posted by jmagaram at 10/12/2006 10:40:01 AM
I have a DataSet I want to work with as Xml using XmlDataDocument. I can't
figure out how to query the resultant Xml using XPath. From the following XML
below, what XPath query will return the list of orders for each Male customer?
Because some tables in my DataSet have >1 foreign key columns... more >>
SelectSingleNode with namespaces
Posted by Robert Ludig at 10/12/2006 6:24:53 AM
My question is somewhat related to the previous question in this
newsgroup:
http://groups.google.de/group/microsoft.public.dotnet.xml/browse_frm/thread/db094f140f8359ca/5d58771b3b60cd47?hl=de#5d58771b3b60cd47
I am having trouble unerstanding how to use XmlNode.SelectSingleNode
Method (String... more >>
Xpath with namespaces
Posted by AMDRIT at 10/11/2006 2:19:46 PM
Hello Everyone,
I am having an issue with xml and namespaces, at least I think it is
namespaces. When I use namespaces, I cannot use SelectSingleNode /
SelectNodes as they always return 0/Nothing respectively. Anyone have any
thoughts?
Thanks in advance
VB.Net 2005
WinXP Sp2
... more >>
NameTable questions
Posted by Alexander Gnauck at 10/11/2006 1:20:27 PM
Hello,
is there a way to disable or reset the entries in a NameTable?
Background is that is that i create small XmlElements and send them over
the wire with a TCP connection. I can't create XmlElements without
having a document. The XmlElements are only created, but never added to
the do... more >>
|