all groups > dotnet xml > january 2007
Filter by week: 1 2 3 4 5
XML DOM vs. IE DOM
Posted by WalterWalt at 1/31/2007 3:56:05 PM
I want to reference my XML DOM the same as in IE.
I want to say
dim strTitle as string =
xmlnodereader.element['books'].attribute['title'].value = "The Autobiography
of Benjamin Franklin"
This has to be possible, help is appreciated, thanks.
----------------------------test.html
<sc... more >>
Using the WebControls.Xml control
Posted by Chris at 1/31/2007 2:25:23 PM
I am using the WebControls.Xml control to render some xml from a memory
stream using an xsl file from disk.
It seems to be doing everything now but rendering the xml. (slight detail)
When I execute the following, I see that my XSL was used to display some
hard coded stuff but the XML was ne... more >>
XMLNodeReader question
Posted by WalterWalt at 1/31/2007 11:53:06 AM
Below is a part of my xml file returned from a webservice. Instead of
converting to a datatable and going through it a record at a time checking
if ClientCodeType = "Balloon_Type" and ClientCode = "R" to the OurCode of 3,
I want to use the XMLNodeReader to get that result back using MoveTo.. ... more >>
Saving/restoring strongly-typed DataTable to/from XML
Posted by timnels NO[at]SPAM gmail.com at 1/31/2007 6:15:04 AM
I have a strongly-typed DataTable I need to save as XML and later
reload it.
I thought that all I had to do was:
menuDataTable.WriteXml(filename,XmlWriteMode.WriteSchema);
And from another application do:
menuDataTable.ReadXml(filename);
But I keep getting... ... more >>
Get from a DataView to an XPathDocument
Posted by Chris at 1/30/2007 5:25:21 PM
I want to get from a dataview to an XPathDocument.
I have tried the following:
System.IO.MemoryStream memstream = new System.IO.MemoryStream() ;
DataView.ToTable().WriteXml(memstream);
XPathDocument oXPathDocument = new XPathDocument(memstream);
My xPathDocument line crashes... more >>
How do I enforce a xsd?
Posted by mortb at 1/30/2007 2:28:57 PM
Hi!
My users shall be able to upload xml documents to my web server.
I will check the validity of the documents with my xsd schema.
The document will contain something like:
<project>
<project-item />
</project>
1- How do they specify in the xml document that they are using my schem... more >>
Can XmlDocument.Load() method handle unicode characters?
Posted by lamxing NO[at]SPAM gmail.com at 1/30/2007 12:51:35 PM
Dear all,
I've spent a long time to try to get the xmldocument.load method=20
to handle UTF-8 characters, but no luck. Every time it loads a=20
document contains european characters (such as the one below, output=20
from google map API), it always said invalid character at position=20
... more >>
Loading XML file into XMLDocument
Posted by Pesci Drums at 1/30/2007 10:01:13 AM
Hey There!...
I've been dealing for hours trying to figure out why do I get the
following error message:
Type 'System.Xml.XmlDocument' in Assembly 'System.Xml,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is
not marked as serializable.
I'm using the following met... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Expression must evaluate to a node-set
Posted by anetasalomonsen NO[at]SPAM hotmail.com at 1/30/2007 5:18:37 AM
I am using xpath within a BizTalk 2006 orchestration.
I get the following error "Expression must evaluate to a node-set".
My xml:
<EmailListResponse xmlns="http://BTTest">
<PersonContact EMailContactValue="test1@mail.com" />
<PersonContact EMailContactValue="test2@mail.com" />
</EmailL... more >>
XmlTextReader Help!!!
Posted by Roshawn at 1/29/2007 6:42:50 PM
Hi,
Ok, so here's my problem. I'm trying to read an xml file using an XmlTextReader. The file itself is simple. What I'd like
to do is compare each node's value attribute to another string. If they are the same, I'll retrieve the text of the node and
do some mumbo-jumbo with it.
Here's... more >>
insert a xsl:value -of into a href property
Posted by Rotsey at 1/29/2007 5:37:12 PM
Hi,
I want to insert a variable in XSL into a the href property of a anchor.
What is the syntax for this???
<a href="Mypage.apsx?docID=<xsl:value-of select='docID'">Click this link</a>
Is that correct?
rotsey
... more >>
Question about serializing...
Posted by Kurious Oranj at 1/29/2007 3:28:37 PM
I've currently got a database structure which is something like:-
class a
- member type
- effective date
and:-
class b
- client name
What I really want to do is to serialize as:-
<classb>
<effectivedate>date</effectivedate>
<clientname>clientname</clientname>
</classb>... more >>
XPATH
Posted by Dave Londeck at 1/26/2007 12:26:34 PM
I am successfully using XPATH to extract a Spreadsheet node from a xml file.
I am now trying to append this element to a different XML file and I am
getting a error stating 'The node to be inserted is from a different
document context.' This is a true statement but I really don't care what
t... more >>
XPATH Excel Node extraction
Posted by Dave Londeck at 1/26/2007 10:32:42 AM
Given the following I am trying to get the worksheet and all of its table,
rows and data so that I can then add the result it to a master xml file.
This will allow me to accumlate several worksheets in a file.
I also need a named range for each worksheet. I am not sure if XSLT can
handle t... more >>
How to Generate XSD from an XML
Posted by zakkar NO[at]SPAM gmail.com at 1/26/2007 6:57:18 AM
Hello ,
I am trying to extract from an xml file all the attributes and the data
and create an XSD file which will match with my xml. I am using .NET
VB. Does anyone Know how to do it ? Does anyone has a sample code of
creating the XSD file ,simply by having the XML ?
I do not want to use a ... more >>
C# Serializing to XML Example
Posted by Kurious Oranj at 1/25/2007 7:42:32 PM
I wonder if someone could help here.
I'm trying to serialize a class with a parent/multiple child relationship.
In other words, there are 3 classes: parent, children, child. The parent
has a single children class. The single children class (which is
currently using iEnumerable and iEnumera... more >>
XML web app
Posted by rajuws at 1/25/2007 5:33:39 PM
I have XML schema for an industry data exchange standard. I want to create
SQL table based on XML schema and create web service that will used by the
industry to exchange the data. I also want to create web application ( web
form ) based on the XML Please advise how I can do this in VS 2005... more >>
Need to convert an HTML file to a valid XTML file
Posted by Frank at 1/25/2007 3:26:29 PM
I just found out I can edit my HTMLHelp in VS2005
I like it better that editing in the HTML Help Workshop
This is an old help file, actually generated when Win help was in vogue.
VS identifies many things that should be changed - line HTML not being lower
case.
Much of it is cosmetic -... more >>
suppressing xsd namespace declarations with XmlSerialize?
Posted by Mark at 1/25/2007 3:02:01 PM
Hi...
I'm just starting to play around with xml serialization. Is there any way
to suppress the xsd and xsi declarations in the resulting xml? It doesn't
appear that they're used but they come out anyway.
Thanks
-Mark
... more >>
passing url in xslt file
Posted by vinki at 1/25/2007 12:04:01 PM
I just want to pass the below URL in my xslt file.
<a href="http://testwebi/testlite/admin/remoteMgmt.aspx?id=<xsl:value-of
select="indexID"/>&action=1">
i keep geeting errors whn i am trying to pass this url, but if i change the
url to below url
<a href="http://testwebi/testlite/admin... more >>
Where do I put my schema?
Posted by mortb at 1/24/2007 11:20:06 AM
Hi,
I'm developing a internet site for a customer. The customer is supposed to
upload XML documents to the site and the documents shall be validated
against a xsd schema.
How do I publish the schema so that my customer may use it for namespace
validation on their side? The site is an aspx ... more >>
Why is line number and position = 0 when validating against a xsd schema?
Posted by mortb at 1/23/2007 4:16:22 PM
Why is line number and position = 0 in the code below?
Valiation errors are found but not their position.
cheers,
mortb
public static void Main()
{
XmlDocument xml = new XmlDocument();
xml.Schemas.Add(null, @"Schema.xsd");
xml.Load(@"Document.xml");
StringBuilder valid... more >>
how to get xml as a string from an XmlDocument object
Posted by joyce chan at 1/23/2007 1:23:52 PM
hi all,
How would I get the xml as a string from an XmlDocument object?
thanks
Joyce
... more >>
How to tell if XmlNode is part of document tree
Posted by martinfrompi NO[at]SPAM yahoo.co.uk at 1/23/2007 6:18:15 AM
I have a container of XmlNodes. Some of them have been removed from
the document, some haven't. Is there an easy way to tell which are
which?
I suppose
bool IsPartOfTree(XmlNode node)
{
while (node.ParentNode != null) { node = ParentNode; }
return node == node.Ow... more >>
Searching good XSL-FO (formatting objects) tutorial for converting XML->PDF
Posted by harryzz NO[at]SPAM vodafone.com at 1/22/2007 7:11:01 PM
I would like to learn some XSLT-FO handling procedures and need a good tutorial.
Unfortunately most of the links in Google refer to books, lessons, XML syntax
What I need is an easy step-by-step guide for installing and applying all necessary tools
for converting a simple lets say "Hello worl... more >>
How to replace attribute's special characters using XMLTextReader
Posted by Goran Djuranovic at 1/21/2007 3:14:17 PM
Hi all,
I ran into a problem where my XMLTextReader fails on .Read() when I have =
"<" character in one of the attribute's values. What I am trying to do =
is replace illegal characters ("<", "&" , etc.) with legal stuff =
("<", "&", etc.), before I send the XML text to a SQL Server =
st... more >>
Select Filter with namespaces
Posted by Cairn at 1/20/2007 1:25:27 PM
I am new to Xpath but wish to parse an XML document for nodes which contain a
child node with a particuale value.
Please does anybody have any clues as to why I never get any returns in the
root node list after the select call.
With thanks.
The code I have looks like this ( subject to a... more >>
.NET/Java double-dimensional (jagged) array interop
Posted by tiberiu.motoc NO[at]SPAM gmail.com at 1/20/2007 11:35:16 AM
Hi.
I've asked this question on the MSDN forums, but I've had no replies.
I'm really stuck, so I'm gonna try my luck here.
I have a Java web service which contains a simple function; the
function returns a double-dimensional array of integers. I ran the wsdl
utility and I created a simple .... more >>
validating xml doc with multiple schemas using wildcards
Posted by vhrao at 1/20/2007 8:46:38 AM
I am trying to validate a xml file with two schema files cust.xsd and
cust1.xsd. The schema file cust.xsd allows addition of elements from
another schema cust1.xsd by using xs:any wildcard.
cust.xsd - schema
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="urn:xmlns:sysapex... more >>
Error recovery when using XMLWriter
Posted by greg at 1/19/2007 4:14:10 PM
Hi All,
I'm writing data into an XmlTextWritter and I want to able to recover from
an error if it occurs and continue the writing. So far even though I trap
the error any subsequent attempt to write to it, it raises yet another
exception because the writer is in an error state.
Is there ... more >>
SelectNodes and xpath.
Posted by DeveloperX at 1/19/2007 11:18:36 AM
SelectNodes under 1.1 is confusing me.
Imagine an xml file that looks like this. It's just an example:
<drive>
<dir a="a">
<file>aA</file>
<file>aB</file>
<dir a="ab">
<file>abA</file>
<dir a=abc>
<file>abcA</file>
</dir>
<dir a="b">
<file>bA</file>
</dir>
</dri... more >>
Showing XHTML text in Word 2007 with the formatting via webservices
Posted by Darsin at 1/19/2007 3:44:00 AM
What i am doing is to pull the data from a CMS and import it to Word
2007 Beta and i also have to export the data from Word 2007 Beta back
to that CMS. We have with us two Web Services of the CMS. The Web
Services are explained as follows:
IMPORT WEB SERVICE:
1) This web servi... more >>
MI5 Persecution: Hotchkies FAQ (1655)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 1/18/2007 11:28:02 PM
From: iain@XXXXX.demon.co.uk (Iain L M Hotchkies)
Newsgroups: uk.misc,uk.legal,uk.politics,uk.media,soc.culture.british
Subject: Corley FAQ (v0.1)
Reply-To: iain@XXXXX.demon.co.uk
Date: Sat May 4 19:30:34 1996
Mike Corley FAQ
version 0.1
first edition 5th May 1996
last updated 5th May 1... more >>
XML Validation against multiple schema Error
Posted by Ben at 1/18/2007 11:25:59 PM
Hi All,
I have 2 XSDs - one with the Types to be used throughout the
application, and one specific to my module (a.xsd & b.xsd)
a.xsd has
<xs:attribute name="MyTest">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="A" /> </xs:restriction>
</xs:simpleTyp... more >>
Deserialize Attribute with a Namespace
Posted by Jon at 1/18/2007 5:44:13 PM
I have an xml document like so...
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:ng="http://newsgator.com/schema/extensions">
<channel>
<title></title>
<link></link>
<description></description>
...
</channel>
</rss>
What .NET XmlAttribute proper... more >>
Hwo to handle empty fields in XML
Posted by Bill Nguyen at 1/18/2007 9:23:35 AM
The following XML has an empty <UserDefinedTag /> (first record)
My VB.NET app got stuck here because I don't know how to handle it. It works
fine with a vlid user defined tag (next record)
<UserDefinedTag>40320121</UserDefinedTag>
Your help is greatly apprecited!!
Bill
- <JA... more >>
How to trim XML's attribute values?
Posted by ABC at 1/17/2007 5:20:35 PM
I have a program which generate a xml file from dataset using
DataSet.WriteXML function. The result is as follow:
<DataSet xmlns="http://tempuri.org/DataSet1.xsd">
<TB TB_NO="NN01001" DESCRIPTION="NN " DATE="1/16/2007
12:00:00 AM" Name=" ... more >>
Transforming to XmlDocument
Posted by Gustaf at 1/17/2007 1:14:15 AM
I've been trying to update my code to the new XslCompiledTransform class
without success. The following method takes an XML and XSL file, and
returns an XmlDocument object. Can anyone figure out how to write the
parameters to the XslCompiledTransform.Transform() method in this case?
static ... more >>
XML-Control .NET
Posted by Matthias at 1/16/2007 9:23:56 PM
Hallo NG,
ich habe folgende Anforderung: Ein XML-Dokument soll in einen Editor
eingelesen werden, also in ein Control das XML als Baum darstellt, die
Node-Values und Attribute sollen editierbar sein. Kennt jemand da ein
geeignetes Control f=FCr (kann auch Geld kosten).
Dank und Gru=DF,
M... more >>
Can't XML Serialize my object
Posted by quantass at 1/16/2007 3:55:03 PM
Am i using the XmlSerializer incorrectly? Im using C# v1.1. My code:
public class Agenda
{
public int a=1;
public ArrayList val = new ArrayList();
}
public class Section
{
public int b=3;
}
Agenda agenda = new Agenda();
agenda.val.Add(new Section());
XmlSerialize... more >>
Problem serializing type System.Xml.XmlElement
Posted by phil NO[at]SPAM leggetter.co.uk at 1/16/2007 3:36:41 AM
I have written a little application that can grab part of a page from a
web site. I then want to take this result and be able to serialize it
so that it can be stored as XML. I am storing these "ResultNodes" as
System.Xml.XmlElements but when I try and serialize (serialise) my
result object I ge... more >>
XPath query with node in empty namespace xmlns=""
Posted by olympus_mons NO[at]SPAM gmx.de at 1/15/2007 3:58:33 PM
Hi all,
my XML looks like:
<root xmlns="tempuri.org">
<result xmlns="">
<date>2006-09-14</date>
<status>ok</status>
</result>
</root>
How do I query the status node using .NET 2.0 and XPath?
The only way I found is using local-name():
strState =
xmlDoc.SelectSi... more >>
VS2005 vs XMLSpy
Posted by Gumby at 1/15/2007 11:23:54 AM
Hi there!
A "special" project team in our department has decided to purchase XMLSpy.
We standardize on VS2005 as our IDE and up to now everyone has used the XML
parser in VS2005.
Are there advantages to using XMLSpy over VS2005? Apparently there are
"integration diagrams" that VS2005 does n... more >>
XMLDocument Parsing Issue in VB.NET
Posted by rajesh at 1/12/2007 7:54:06 AM
Hi,
I am trying to parse a xmldocument and to get value of a name tag
"techlanguage" is "vbdotnet".
Here i need to select the propername tag which is "techlanguage" and
the propervalue which is "vbdotnet"
Here is the structure of my XML
<?xml version="1.0" encoding="utf-8" ?>
<filte... more >>
Maddening working with .NET/.XSDs
Posted by cada0310 at 1/11/2007 7:06:01 PM
Hey there,
Just starting out messing with XML in .NET. I'm just trying to read some
simple XML that I'm using to pass data structures between programs.
Something like this:
<?xml version="1.0" encoding="utf-8"?>
<Chris>
<One>1</One>
<Two>2</Two>
</Chris>
So I create the above ... more >>
XSL If Question
Posted by Fred at 1/10/2007 10:25:37 PM
Hi,
I am using XSL if to look and see if a node exists and if so display it with
a header (see below). Some of the xml I transforming has nodes like this
<Test /> and it shows up in my html report (header no value). How do I test
for this?
<xsl:if test="Test">
<xsl:if test="Test">
<b... more >>
Reading an xml string
Posted by JRD at 1/10/2007 8:40:27 PM
Greetings,
I would like to search down through the following xml string that is =
returned to my calling app via a webservice.
What I am trying to get is the following section from the xml string
<component><section><code code=3D"8716-3" =
codeSystem=3D"2.16.840.1.113883.6.1" codeSystemName... more >>
.NET's internal Source Code
Posted by kurtrips NO[at]SPAM gmail.com at 1/10/2007 6:31:19 PM
How can i view the source code for .NET's internal dlls. (System.XML
dll for my case)
I have seen an app which does this but i cant remember its name or find
it on the net.
I want to know for this:
I am deriving my class for XPathNavigator and am implementing all the
MoveToXXX , Clone etc.... more >>
Does a DTD change the default namespace or something?
Posted by Ross Presser at 1/10/2007 11:00:56 AM
I'm feeling very stupid about this ...
pdf2html (http://pdf2html.sourceforge.net) is an app that reads a PDF
and can generate HTML or XML; in my case I'm using the XML. The PDF I'm
working with is a concatenation of many reports; my objective is to
find the first page of each report, which I'v... more >>
Help: extension objects
Posted by cuj0 NO[at]SPAM bigpond.com at 1/9/2007 5:07:02 PM
I'm having problems with the ouput from xsl transformations when an
extension object is involved (note: I am new to this so please be
gentle). For example, I have copied Microsoft's example code (C#) from
this link and run the project successfully on my machine:
http://msdn2.microsoft.com/en-... more >>
|