all groups > dotnet xml > august 2005
Filter by week: 1 2 3 4 5
Transform Method on Demand.
Posted by K riley at 8/31/2005 3:04:49 PM
Hi.
I am using the transform method to create an HTML file using an existing XML Document and an XLST. I need to use XPath to extract
a node from my XML Document and my XLST document will format the node into something readable to my users.
My code works, however, I will be having multiple ... more >>
xmldocument vs. xpathdocument
Posted by Ben R. at 8/31/2005 11:14:03 AM
Hi,
Could someone explain the functional difference between these classes? From
what I understand, xpathdocument is faster in some scenarios, but I'm not
sure why. Further, why is it that the method of getting xml data into these
two classes differs? (xmldocument uses the load method, where... more >>
Remove XML Node
Posted by William at 8/31/2005 6:57:19 AM
Have somebody a brilliant idea how to remove a nodelist in a XML
document? (With C#)
I have this xml file,I want delete the stock nodelist when an user
don't have permissions to see stocklist of that location.
<Respo1>
<From>Test</From>
<To>Test</To>
<MsgType>RESPO1</MsgType>
<MsgVer... more >>
Details about XmlHttp
Posted by Sajid Khan at 8/31/2005 2:09:04 AM
Hi,
This is sajid. I want to use XmlHttp for refreshing a part of the web
page. But i dont know much about XmlHttp.
Any project that is using XmlHttp for doing similar thing will help me
understanding more about that...could you please tell anything about
that..
Thanks,
Sajid
*** ... more >>
XmlDocument.Load() and relative URL
Posted by el.c. - myLittleTools.net at 8/31/2005 12:00:00 AM
Hi all
I'm creating an XmlDocument object and then i need to load its xml
content from an url which returns an xml stream
My problem is that i cannot use absolute URL but *relative* URL
i.e.
oXmlDoc.Load("../xml/genxml.aspx");
I know that
oXmlDoc.Load(http://xx.xx.xx.xx/site/xml/genxml.as... more >>
in C# how do i transform an xml document with an xsl document when my xml document is a string and my xsl document is a string? the msdn examples only
Posted by Daniel at 8/30/2005 5:03:12 PM
in C# how do i transform an xml document with an xsl document when my xml
document is a string and my xsl document is a string? the msdn examples only
show how to do it with steams and files. in my case i have everything in
string
... more >>
how to make sure a xsl document has valid xsl syntax? i tried loading it into an xml document but that doesnt show syntax errors inside attributes suc
Posted by Daniel at 8/30/2005 5:01:54 PM
how to make sure a xsl document has valid xsl syntax? i tried loading it
into an xml document but that doesnt show syntax errors inside attributes
such as "foo/bar" vs "bar\foo"
... more >>
How to use schema validate xml file?
Posted by Knighterrant at 8/30/2005 4:07:47 PM
I have created my schema format(xxx.xsd) for my xml files, but how can I
use it validate my xml files?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Embedded HTML tags in XML data
Posted by Bryan at 8/30/2005 3:22:02 PM
Hi.
I have queries that bring back recordsets from SQL 2000 that are being
converted to XML for display using XSLT templates.
The issue is that some of the verbose text has embedded <BR> tags. These
tags are being displayed on line. The end user does not want to see these
tags.
I ha... more >>
css style sheet
Posted by 00Eric Clapton at 8/30/2005 2:56:24 PM
How do I add a css style sheet to a HTML? Thanks.
... more >>
Any XML patterns and practices?
Posted by Chris at 8/30/2005 12:24:36 PM
Hi Folks,
Is there a good resource out there with some patterns on flexibly creating
XML documents? Basically, I need to be able to start with an instance of an
XML document, or a DTD, or a XSD, and produce something I can easily
populate with my own data and render as an XMLDocument.
I... more >>
inserting record into an xml doc using datagrid
Posted by Stephen at 8/30/2005 10:12:32 AM
I have the following for a datagrid that inserts a row into an xml
file. It works great, but inserts the data to a new top-level node. I
don't know how to specifiy an existing node for the inserted item:
void DataGrid1_Update(Object Sender, DataGridCommandEventArgs e) {
try {
... more >>
Parameters in XPath Query .
Posted by Speed at 8/29/2005 9:49:01 PM
I have a following xml file :
<Bitmaps>
<BITMAP id="1">
<BITMAP id="2">
<BITMAP id="3">
</Bitmaps>
if i need to go the node BITMAP id = 2 directly can i use the XPath
query as
string query = "/Bitmaps/Bitmap[@id = 2]";
... more >>
ReadOuterXml Locks Up
Posted by TJO at 8/29/2005 5:12:10 PM
The following code snippet seems to successfully read the first
outerxml but on the second time in the loop it locks up. Can anyone
see why?
Thanks
<code snippet>
using (FileStream fs = File.Open(test._LogFileName,
FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None))
{
reader... more >>
xpath against dataconfiguration.config
Posted by news.microsoft.com at 8/29/2005 4:11:01 PM
Hi
I posted this question earlier today to microsoft.public.dotnet.vb.general
and microsoft.public.enterprise.tools. My apologies if anyone reading this
has seen the message already. I only just came across this forum while
searching again for the right place to post my question.
Oka... more >>
How to add XmlElement with a namespace
Posted by Krzysztof Kazmierczak at 8/29/2005 1:45:57 PM
Hi All!
I have problem with creating xml document with a namespace:
XmlDocument xmlDocument = new XmlDocument();
XmlElement rootElement = xmlDocument.CreateElement("foo");
xmlDocument.AppendChild(rootElement);
XmlElement boo = xmlDocument.CreateElement("boo");
boo.InnerText = "boo";
r... more >>
XML Serialization of CollectionBase and FXcop
Posted by bezel at 8/29/2005 9:12:01 AM
I have an object which has a collection in it which I serialize using the
XmlSerializer. According to FXCop, it is a bad practice to include the set
accessor on the collection because it could result in non-type safe behavior.
Fine. So I remove the set accession. The Collection inherits fr... more >>
need help with xpath query
Posted by Scott.Emick NO[at]SPAM gmail.com at 8/29/2005 6:54:04 AM
In the following XML example I am trying to grab the element that
contains the exchange rate (frbny:OBS_VALUE) using SelectSingleNode &
an expath expression, but none of the ones I've tried seem to work.
Any suggestions? (I'm using VB .Net 2003)
Thanks,
Scott Emick
<?xml version="1.0"?><... more >>
HTML to XML conversion
Posted by GeRmIc at 8/28/2005 10:57:02 PM
Hi,
I'm trying to create a Learning Object Repository to store learning objects
(obviously!). My question is how do I convert HTML pages to XML and then
store them in a database and then generate HTML/XHTML pages on the fly and
display it to the client from the stored XML files.
Help!... more >>
XmlSchemaSet Compile error ?
Posted by Brice Prunier at 8/27/2005 6:44:02 AM
Here under 4 schemas i'm working with ( it may be long: sorry...)
The context is the following :
Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema:
no TargetNamespace )
Person.xsd includes Common-Naming.xsd ( anonimous schemas )
Common-Naming.xsd includes common.xsd ( ... more >>
traverse xml document nodes - SelectNodes()
Posted by Stephen at 8/26/2005 11:51:50 AM
I have the following code that uses xquery to return search results
from an xml doc.
dim xmlString as string
xmlString =
"siteMapNode/siteMapNode/siteMapNode/siteMapNode[contains(translate(@title,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),
'" + txtSearchCriteria.Text.ToUpper... more >>
The same table 'All' cannot be the child table of two nested relat
Posted by Vicki at 8/26/2005 7:09:07 AM
Using VS2005 beta 2, I have an xsd provided by a vendor that I want to make
into a strongly typed data set. In VS 2003 the MSDataSetGenerator tool gives
a similar error, which I was told was to be fixed in VS 2005. And in fact
the xsd tool does now correctly process the .xsd and create a .vb... more >>
Making portion of a page anti-spider/bot
Posted by Aaron at 8/26/2005 6:27:37 AM
I wish for this area to be encode so a spider/bot can not capture/scrape
anything useful from the webpage(s). Only someone that renders and loads the
page can see what text is there.
Here is the xslt snippet, it is part of a asp:xml tag:
<table border="0" width="75%">
<xsl:for-each select="En... more >>
Yet another ICollection that doesn't serialize. Anyone see why?
Posted by Lars-Erik Aabech at 8/26/2005 12:00:00 AM
Hi!
I've got problems with serializing my collections of business objects. The
objects themselves serialize fine, but the collections fail. I've got the
following structure:
Base collection class:
Derives MarshalByValueComponent
Implements ICollection, IList and ISerializable
Explicitly... more >>
How to ignore namespace in XMLDocument
Posted by Maziar Aflatoun at 8/25/2005 11:38:42 AM
Hi,
I have this XML file that I need to parse.
<property>
<name>some name</name>
<value>some value</value>
</property>
<report xmlns="http://schemas.site.com/test/test/">
<reportElementList>
<reportElement>
....
....
</reportElement>
</r... more >>
XML into DataSet - How to nav through Data
Posted by K riley at 8/25/2005 10:08:37 AM
Hi. I need some help.
I have an xml file what will contain hundreds of groups and will have an associated xsd.
My overall goal is to have a web application that allows a user to input a groupID from a webform, the application will than find
that groupID in the xml file and display all the r... more >>
Encoding a portion of a file
Posted by Aaron at 8/24/2005 9:43:25 PM
Hello,
I wish to encode this portion of code from a xslt file that is combined with
and xml file for a asp:xml control, code is below.
TIA
Aaron
<table border="0" width="75%">
<xsl:for-each select="Entry">
<xsl:sort select="DateTime" order="descending"/>
<tr>
<td colspan="2"><... more >>
A string literal was expected, but no opening quote character was
Posted by NRao at 8/24/2005 2:18:11 PM
I am trying to display just XML in aspx page. To display only XML I removed
all html tags in aspx page and writing xml using response.write. This works
fine in Dev.Once we move it to production where we use SSL am I am getting 'A
string literal was expected, but no opening quote character was ... more >>
xml to excel
Posted by ganesh_infosys at 8/24/2005 4:19:04 AM
can anybody tell me how to transfer xml data to an excel template (worksheet)
using asp.net ?... more >>
URI formats are not supported
Posted by K riley at 8/23/2005 11:44:59 AM
Hi.
I am trying to use the XslTranfrom object and I am getting an unhandled
expection.
URI formats are not supported
Exception Details: System.ArgumentException: URI formats are not supported.
I am following the example as layed out by Microsoft for C#
http://msdn.microsoft.com/library/de... more >>
Nested schemas
Posted by SideByEach at 8/23/2005 7:23:21 AM
I have a schema that references a child schema via a "xs:import" node.
In that child schema it references several other grand children
schemas. Is there an object in the VS 2K5 suite which will allow me to
consolidate all the nested schemas into one giant schema?
I've tried using the XmlSchema... more >>
XSLT reference?
Posted by Jon Shemitz at 8/22/2005 11:02:10 PM
Once, I happened on a fairly complete set of xsl: language element
docs in VS.2003. I can't find it again - can anyone tell me how to
navigate to it from either the Contents or the Index?
--
www.midnightbeach.com... more >>
XmlReader and recursive descent parsers
Posted by Jon Shemitz at 8/22/2005 4:08:29 PM
I just wrote my second method that reads an XML stream with XmlReader
and spits out a instance of an object that represents the XML stream.
In effect, this was a simple recursive descent parser that uses the
XmlReader as a tokenizer.
Realizing this naturally led to the question: Are there any ... more >>
HTML Output in XSLT
Posted by Fredy Muñoz [MCP] at 8/22/2005 10:29:01 AM
Hello there!
I have a couple of questions about generating HTML using an XSLT Stylesheet.
I use the System.Xml and System.Xml.Xsl namespaces and a XslTransform object
to make the transformation, as follows:
xsltTemplate.Transform(xmlOutput.CreateNavigator, Nothing,
xmlWriter, N... more >>
XML Parsing and storing in database
Posted by Maziar Aflatoun at 8/20/2005 5:35:45 PM
Hi,
I have a multi-level complex XML that I like to process and store in the
database. I'm comfortable with using DataSet and then reading the tables
(XML is parsed into 7 tables in my case) and processing the data. However,
just to become familar with XmlTextReader, I've done the same thing ... more >>
Need help with Xpath
Posted by Shawn at 8/20/2005 12:00:00 AM
Hi.
I have an XML file that looks like this:
<?xml version="1.0" encoding="utf-16"?>
<Transfer>
<Config xmlns="http://www.mysite.com/Transfer/">
<site>NY</site>
</Config>
</Transfer>
I'm trying to get the value of "site", but I'm having some trouble with it.
Here is what I've trie... more >>
is it possible to install multiple copys of the same .net web service on the same computer but with different service names specified durring instalat
Posted by Daniel at 8/19/2005 4:11:33 PM
is it possible to install multiple copys of the same .net web service on the
same computer but with different service names specified durring
instalation?
... more >>
xpath question
Posted by Jeremy Chapman at 8/19/2005 2:26:02 PM
I have the following xpath statement which returns the value in the
<IHA_PL_0_Location> node of the schema below. My problem is that the
Root node may not always be ADT_A02_21_GLO_DEF, it could be
ADT_A04_21_GLO_DEF or something else. How can I write an xpath that is
independant of the root... more >>
relative import path in public schema
Posted by LesleyW at 8/19/2005 12:36:04 PM
I'm using a public set of schemas for GML, avaiable at www.opengis.net/gml.
They all include or import each other but live in a folder hierarchy, so the
import statement includes schemaLocation="../xlink/xlinks.xsd". I've written
a schema that imports the top level one using
schemaLocation="... more >>
XmlTextAttribute() in base class breaks serialization?
Posted by Tom Regan at 8/19/2005 9:21:32 AM
Is it possible to mark a base class member with XmlTextAttribute and
serialize a derived class? When I attempt to do so I get this error:
There was an error reflecting type '[type name]'. --->
System.InvalidOperationException: Cannot serialize object of type
'[type name]'. Base type '[base ty... more >>
use XmlReader/XmlWriter to reformat XML?
Posted by Michael Malinak at 8/19/2005 8:25:06 AM
Since XmlWriter offers so many nice options for formatting, I thought it
would be nice to read in via XmlReader, and write back out via XmlWriter.
It might be overkill, but I'd also like to be able to check some values
during that time also so I was going to be using XmlReader anyway.
Unfort... more >>
XmlNode and read as BinHex
Posted by Donal McWeeney at 8/19/2005 12:00:00 AM
Hi,
I'm processing a document using XmlDocument and I have an XmlNode whose
value is stored as a binhex encoded string...
How can I get this string converted back to a byte[]...
XmlConvert has some internal methods but is there no public .net framework
classes or methods that will do th... more >>
Map XSD/XML data to VB.net classes
Posted by Pascal Brunot at 8/18/2005 1:42:47 PM
Hi,
That's my first post here so I hope this is the right group to post to.
I have to design a good strategy to manipulate XML data in VB.net
language.
Here's the business case:
- I will have a large number (200+) of XML forms created with Infopath
that represents industrial machines speci... more >>
validating xml defined by DTD - ignore node sequence
Posted by aidancasey NO[at]SPAM gmail.com at 8/18/2005 8:36:32 AM
I want to bypass the dtd validation that child elements must appear in
a certain order ...
In a DTD child elements that are defined and seperated by commas they
must appear in the same sequence in an xml file in order for the xml to
be valid ...
eg if the dtd defines an element Parent with ... more >>
Greek Cyrillic fonts in XML
Posted by Kiki at 8/17/2005 4:35:54 AM
Hello,
I'm trying to find a way to display text in greek or cyrillic in a .NET
page using text stored in XML format. I'm getting the greek words
displayed like this: "=C4=E9=DC=F6=EF=F1=E1". I'm no expert but this is not=
a
greek word. Has anybody got any ideas of what i need to use to diplay
... more >>
how to embed a control in XML Document
Posted by jayrm100 NO[at]SPAM yahoo.com at 8/17/2005 4:00:14 AM
Hi,
I need to add controls like Textbox,Label,Listbox etc dynamically in
a WordML document.
To be more precise, suppose i have doc and docnodes as two xml nodes,
document should be displayed as
<doc>
<docnodes>
Label1 : Textbox1
Label2 : Textbox2
</docnodes>
</d... more >>
XML Error???
Posted by jackryan57 NO[at]SPAM hotmail.com at 8/16/2005 4:17:04 PM
I am getting the following error when I try to use our software at
work...
"Query type fail for ID failed unable load xml formed query message"
This is occuring on a windows 2000 pro machine.
Any ideas????
Jackryan
... more >>
Basic Question on Creating XML documents
Posted by vvenk at 8/16/2005 3:15:02 PM
Hello:
I am learning XML technology. I have a question on creating an XML document
that conforms to a DTD/XSD.
While there is a function that I can call to make sure that the XML document
is valid, I would like to know how I can create it.
Do I have to understand the DTD/XSD and code my... more >>
Regular expression validation for email
Posted by AGGoogle at 8/16/2005 5:35:14 AM
I might be doing something stupid here but I really need some help.
Can someone please tell me why can't I get this xml to pass my
validation when I use XmlValidatingReader? The XMLSpy seems to accept
it.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<Address>
<email>x.x@x.com</email>
</Ad... more >>
RSS news
Posted by asad at 8/16/2005 5:31:57 AM
hello, how ru all,
I have a news section on my website which is update dynamicaly. I'm using
ASP.NET and Ms Acces, now i would like to add an RSS news section on my site
(like yahoo RSS news section). how can i make RSS of my news section and
update that, pls tell me
Thanks,
good bye
... more >>
|