all groups > dotnet xml > april 2007 > threads for april 1 - 7, 2007
Filter by week: 1 2 3 4 5
XmlTextWriter to StreamWriter problem
Posted by GaryDean at 4/7/2007 2:21:19 PM
I'm using an XmlTextWriter and it's various methods such as
WriteElementString, WriteStartElement, WriteEndElement, etc to create an xml
document. When I instantiate the XmlTextWriter to a file...
XmlTextWriter mytw = new XmlTextWriter("c:\\temp\\myfile.xml", null)
Everything writes prope... more >>
html XSL Transform
Posted by patrickbeaudoin NO[at]SPAM gmail.com at 4/7/2007 12:04:02 PM
Hi,
I have a problem when I put the <html> tag in to a xsl transformtion.
First, I give you a xml and xsl example:
XML:
<form title="Test" height="600" width="800">
<element type="check">
<style name="top" value="25" />
<style name="left" value="124" />
</element>
<element t... more >>
Re: How to remove xmlns attribute from XML document (.net)
Posted by Greg Collins [Microsoft MVP] at 4/7/2007 9:42:08 AM
Here is an updated link to the above Braintrove article:
Prevent Namespace Prefixes from Being Copied to the Output
http://www.braintrove.com/article/8
--=20
Greg Collins [Microsoft MVP]
Visit Braintrove ( http://www.braintrove.com )
... more >>
!Urgent: Ask for XPath support in VS 2005
Posted by Joe.ntang NO[at]SPAM gmail.com at 4/6/2007 11:58:50 AM
Hi,
How is the support of VS 2005 to XPath? In fact, I care about only
very simple XPath here, such as a//b[@lang='eng']. And I want parse it
into a tree so I can easily manipulate it.
Please someone tell me how to do it. I need it in a hurry.
Joe
... more >>
XmlWriter newbie question
Posted by GaryDean at 4/4/2007 6:02:20 PM
I'm trying, for the first time, to write XML to a string that will be sent
out to a web service.
According to the docs I have found...
An XmlWriter needs a XmlTextWriter that needs a StreamWriter that needs a
stream. (is it really this hard?)
So I'm defining...
System.IO.Stream astre... more >>
Export DataTable to XML with simple transform
Posted by J055 at 4/4/2007 5:51:24 PM
Hi
I've been looking into ways of exporting typed DataSets and DataTables to
XML files. I need to manipulate the output before creating the XML file so I
don't think the WriteXml methods will do.
I would like a simple way of transforming a DataTable from e.g.
<accounts>
<account>
... more >>
Best approach to deserializing nested elements.
Posted by Jeremy_B at 4/4/2007 8:24:02 AM
I am working on an order entry program and have a question related to
deserializing nodes with nested elements.
The purchase order contains multiple line items which I select using an
XmlNodeList. I am trying to deserialize the nodes using a foreach as follows:
foreach(XmlNode lineItem in ... more >>
XPath attrbute issue
Posted by Jesper, Denmark at 4/4/2007 8:14:03 AM
Hi,
Say I have the following xml, below, and would like to get the second <bar>
element with the following xpath expression "/foo/bar[i='1' and j='2']". This
only works if the 'i' attribute value differs from the first and second bar
element - why?
I can't see any ambiguity issues.
<f... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Anyone know how to work with Xpath in XmlNode ? Need some help with this please.
Posted by jesper_lofgren NO[at]SPAM yahoo.se at 4/4/2007 3:53:52 AM
Hello, i need to help here.
I have a xmlnode as you can se below (full xml is in the bottom). I
wonder how i can get the values inside the CSammanstallningLista .
<CSammanstallning Id=3D"Omrade" DefaultInclude=3D"0">
<Rubrik>Omr=E5de</Rubrik>
<Text>Kallh=E4ll. Fabriksv=E4gen,... more >>
Extra Carriage Return Problem
Posted by YS Ram at 4/3/2007 9:34:04 PM
(Sorry if this post appears twice, as I couldn't see my initial post after 4
hours)
Hi,
I am using XML XSL to create a CSV file using Transformation. But during the
transformation all the Newline characters (CHR 10) is getting translated to
Carriage Return and New Line (CHR 13 and CHR 10... more >>
How to Parse Mixed Content
Posted by Iain at 4/3/2007 3:22:35 PM
I've spent a while researching this and my analysis to date indicates it
can't easily be done in dotnet.
what I want to do is to take xml like this
<stuff>
<node id="1"/>Now<node id="2"/> <node id="7"/>is<node id="14"/> <node
id="15"/>the<node id="19"/> <node id="20"/>winter<node id="21"/>
... more >>
xslt not working when xml has xmlns="urn" in root element.
Posted by Lee at 4/3/2007 11:18:49 AM
Hello guys, I am new to XML and working on a XSLT to transforn yahoo
shopping search result to html. my problem is the return XML contain
xmlns in root element, here is the sample xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="aproductsearch.xslt"?>
<Produc... more >>
search and insert
Posted by gk at 4/2/2007 11:43:58 PM
Hi,
I have trouble figuring out how to search for a particular string in an XML document and annotating it.
For example if I'm looking for the string "sentence with tagged words" and wish to annotate it with a "found" tag:
original xml:
<xml>an example sentence <tag>with tagged words</tag>... more >>
XML DATA Verification
Posted by Rami at 4/2/2007 8:42:53 PM
I am using an XSD schema to validate an XML document. I want to
validate both XML structure and [data]. When I try to validate the
document, the validation only checks for things like proper tags, and
correct data (like integer or string). So if I put any character in
between tags that should e... more >>
Un-flattening XML-data
Posted by Adri Genis at 4/2/2007 8:31:38 PM
Hi,
I am exporting data from a MS Access 2003-database and has to transform it
into a structured document. The input is as follows:
<departments>
<department>
<name>Community Services</name>
<person-in-charge-first-name>Gabriel</person-in-charge-first-name>
<... more >>
C# and XML Document
Posted by news.microsoft.com at 4/1/2007 8:08:52 PM
I am having problems with the following code. I am able to open the xml
document and read it into memory and if I step through the code and look at
the variables, I can see that the XML document is correct. What is
happening is that what is being returned into TableName is
"System.Xml.XmlE... more >>
|