all groups > dotnet xml > october 2007
Filter by week: 1 2 3 4 5
What is the fastest possible xsl style sheet to add another <box> node under <boxes> ?
Posted by DR at 10/31/2007 7:42:47 PM
What is the fastest possible xsl style sheet to add another <box> node under
<boxes> ?
<foo>
<car></car>
<boxes>
<box id="234" />
<box id="75" />
</boxes>
</foo>
here is what i want it to look like after the xsl adds another box node:
<foo>
<car></car>
<boxes>
<box id=... more >>
Fastest way to move XML document into and back out of CLR function
Posted by DR at 10/31/2007 6:41:44 PM
Fastest way to move XML document into and back out of CLR function
In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass
an xml data type variable into a C# CLR function and retrieve it back out of
the C# CLR function when the C# CLR function is done modifying it?
I tr... more >>
Reading and Writing to Config Files
Posted by Mick Walker at 10/30/2007 9:53:51 PM
Hi Everyone,
I have a situation where I need to read another applications .config
file. I will have to add new nodes to various parts of the config file.
(It is actually the IIS 7 applicationHost.config file)
I am using C# to do this.
What would be the best way to approach something lik... more >>
easy question - empty element?
Posted by Valery at 10/30/2007 12:31:29 AM
In the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<Plcy service="ILiability" boId ="LifePolicy, 1">
<Prem service="IPremium" boId ="RegularPremium, 1"></Prem>
<L1 service="ILifeMain" type = "Life1">
<FirstName>Sheila</FirstName>
<Age>65</Age>
<Relation... more >>
XML storage of Form data
Posted by Namshub at 10/29/2007 2:53:06 PM
Hi,
I'm looking at storing data from an aspx form in an XML document, but what I
was looking into was how to reload the form, and populate the items from the
XML document, into their relevant server controls.
I have come across the XSL document but have not really seen it in use with
an ... more >>
How to deserialize with several namespaces
Posted by Julien Sobrier at 10/28/2007 10:35:55 PM
Hello,
I'm trying to deserialize an RSS feed that can contains 2 namespaces.
FOr example, it can contain a tag <image> and/or <itunes:images>. I
couldn't figure out how to get both. This simplified extract of code
does not work:
[XmlRoot(ElementName = "rss")]
public class RSSFeed
{
[...]
... more >>
CreateDocumentType file not found
Posted by Sergei Shelukhin at 10/27/2007 7:18:11 PM
Hi. I need to write xml export that will be used by another
application. That application requires that I add a doctype
delcaration to the document, referencing a certain dtd file. I do not
have the file, and don't really need the declaration myself, it will
be used when the document is read I s... more >>
display encoded xml attribute with javascript
Posted by xke at 10/26/2007 8:53:30 AM
My xml is a collection of events:
<events>
<event name="event1" />
<event name="event2" />
</events>
I have a JavaScript function looping through the xml and building a
list with the event names.
<div id='myDiv' />
<script js>
.... code ...
.... loop ..
{
document.getElementById(... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to search against XML files in the file system?
Posted by clintonG at 10/24/2007 7:51:21 PM
Putting the search textbox on the page is the easy part. What's preferred
way to find terms in XML files located on the file system?
Like finding stuff saved in XML files some of the blogs use these days to
store their blog items? There can be lots and lots and lots of XML files on
the file s... more >>
check XmlDeclaration
Posted by xke at 10/23/2007 4:37:09 PM
How can I check that a document has XMLDeclaration ?
i.e. it has <?xml version="1.0" encoding="utf-8"?> in the beginning
thanks,
xke
... more >>
How to create a CLR DLL for Sql Server 2005? Is it just any .net class library that you can load into Sql Server 2005 or is there some special project
Posted by DR at 10/23/2007 1:55:11 PM
How to create a CLR DLL for Sql Server 2005? Is it just any .net class
library that you can load into Sql Server 2005 or is there some special
project type that I need to start with?
... more >>
Multi file XSD schema won't compile in C#.net 2.0 program
Posted by Doug H at 10/23/2007 10:12:01 AM
I am having difficulty referencing a multiple file XSD schema in a .Net 2005
program. The schema files are shown below in their entirety.
As soon as these files are included in my project, I get the following error
compiling the program:
Unable to convert input xml file content to a Data... more >>
Updater through Remote XML: Advice
Posted by AGP at 10/21/2007 2:35:48 AM
I am implementing a very simple check routine that goes to my website and
reads an XML file.
The XML file basically contains all info for my apps and their current
status. All I need to do is just read
the version node and compare it to the current node and then advise the user
to visit the web... more >>
Random access to large XML file
Posted by Yuriy Galanter at 10/19/2007 8:44:52 AM
Hi,
I need to have random access to the XML document, selecting children may
depend of what parents are and vice versa, need to be able to go from deeper
level back to ancestors etc. So naturally XPath (and XPathDocument and
XPathNavigator) are the tools of choice. The problem is - how to d... more >>
HTML or XML diff/merge
Posted by Andy Fish at 10/19/2007 12:00:00 AM
hi,
I am looking for a library (i.e. not a standalone GUI program) that can do
diff and merge of HTML or XML, preferably in C# or at least that can be
called from C#
anyone know of such a thing
TIA
Andy
... more >>
Deleting elements from xml doc.
Posted by Gaurav at 10/18/2007 9:06:15 PM
Hello,
I am stuck trying to apply the following logic to the below xml:
<?xml version='1.0' encoding='ISO-8859-1'?>
<Collection>
<Book Id='1' Locator='Yes'>
<Title>Principle of Relativity</Title>
<Author>Albert Einstein</Author>
<Genre>Physics</Genre>
</Book>
<B... more >>
How to link xml with xsd "externally"?
Posted by Eve at 10/18/2007 6:33:00 AM
Right now, in order to validate my xml file against xsd, I include the
following line in the xml file: xmlns="urn:mySchemaName".
Is it possible to link xml to xsd without specifying the schema inside the
xml file?
Thank you!... more >>
XSD doesn't validate XPath
Posted by Eve at 10/18/2007 6:21:01 AM
I'm fairly new to xsd. I'm validating xml against xsd using
XmlReaderSettings. It looks like my xsd does not verify the element path: My
schema definition allows for both OrderProperties and OrderPartners elements,
however Partner can be specified only under OrderPartners. In other words,
th... more >>
Not getting attribute into dataset using XSD
Posted by Chris White at 10/17/2007 5:11:17 PM
Here's my XML
<?xml version="1.0" encoding="UTF-8"?>
<results>
<status code="ok"/>
<report-bulk-users>
<row principal-id="23859115" type="user">
<login>muser@domain.com</login>
<name>My User</name>
<email>myuser@domain.com</email>
... more >>
XmlTextWriter,XmlDocument
Posted by Ars Comm - Ciro Ferraiuolo at 10/17/2007 4:35:15 PM
Hi all, I need to embed an image to an existing xml file. I guess this is
possible using XmlTextWriter.WriteBase64() method. My problem is that
XmlTextWriter writes to a new document.
How can I edit an existing doc (for example with XmlDocument class) and
write an image to it?
I'm sorry but I'm... more >>
Howto: Ommit empty xmlns specs?
Posted by Harald at 10/17/2007 9:53:34 AM
Hi,
I generate Xml with the XmlDocument methods. Now I have the problem, that a node has a namespace declaration but the child text nodes shall not have a namespace specification.
The XML should look as follows:
<root xmlns="anyURI">
<child 1>My Text</child 1>
...
But when generation... more >>
HowTo: Generating several namespaces for an element in an XmlDocument?
Posted by Harald at 10/17/2007 4:24:54 AM
Hi everybody,
I'm using VS 2005, .Net 2.0. The CreateElement() method of XmlDocument allows to supply a namespace URI. Now I want to add several namespace URIs with different prefixes to the element. How do I do that. Here an example:
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsh... more >>
xmlReader.Create Steam vs InputURI
Posted by SBearss NO[at]SPAM accessitx.com at 10/15/2007 8:55:30 AM
I'm creating an xmlReader to be used in conjuction with an xml
document to validate schemas.
If I specifiy a FileName in the xmlReader.Create method everything
works as it should
However if I use the fileName and create a FileStream, when I load
the xml document with the reader, I get an erro... more >>
Using XmlDataSource
Posted by mazdotnet at 10/12/2007 3:48:08 PM
Hi all,
I have trying to test an XML file with a XSLT file. However, I don't
know how to dump the content (generate page to the screen). What
control do I need to bind to display the generate html page?
I just have
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/
my.xml"
... more >>
Anyway to Preserve element order with writexml()?
Posted by FerrisUML at 10/11/2007 7:38:52 PM
I've loaded a schema into a dataset and have begun populating the
tables with data from a sql query. Problem is that when I use
writexml(), the format of the xml fails validation against the XSD
file. Whats happening is that the writexml() method doesn not
maintain the order of the XSD file, b... more >>
how to change a value or in some node elements
Posted by jacob at 10/9/2007 11:09:00 AM
hello guys
i have a problems with xmls
how to set or change values from xml node elements from an existent xml file
using C#
from this xml file
<xml version="1.0">
<students>
<student-name>jean</student-name>
</students>
to this
<xml version="1.0">
<students>
<s... more >>
Credentials for document() function
Posted by Yuriy Galanter at 10/8/2007 4:17:45 PM
Hi,
When using an XSLT file if it points to another, external XML file via it's
URI in document( ) function, how do I supply credentials for that URI if
ones are required?
Thanks!
... more >>
About XSD Parser
Posted by swaps12 NO[at]SPAM gmail.com at 10/8/2007 6:41:43 AM
Hello,
I have a XSD file which has the following format:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="note">
<xs:complex... more >>
CDATA
Posted by Kumar.A.P.P at 10/8/2007 6:29:06 AM
I have the XML file content as
<resources>
<html><![CDATA[<B>Hello World</B>]]></html>
</resources>
and my html file content is
<html><![CDATA[<B>Hello World</B>]]></html>
the XML file when viewed doesnt give me any problem, but when it comes to
HTML the output that i recieve is ... more >>
Word 2007 XML to HTML
Posted by slaprade at 10/5/2007 9:47:01 PM
I'm not sure this is the correct locqation to post this question but I have
already posted similar question in Office news group (without response)
I am using VS2005 to create a solution for Word 2007. This version of Word
no longer supports HTML as previous versions did. To maintain compatab... more >>
XML write problem
Posted by Aahz at 10/5/2007 5:03:08 AM
Hello,
I need to write xml file ( using c#) with some elements inside that
actually contains html code, like this:
Moscow <p></p><a href="www.google.com"><img
src="gallery/t20.jpg" border="0" /><br /> Red Sqare </
a>
Instead of that every time I got... more >>
Help Editing an XML File
Posted by Mr. Chip at 10/4/2007 1:51:03 PM
Greetings,
This is my first post and I am hoping (praying) someone could help me. I am
not a programmer, I just know enough to be dangerous.
I have a custom application someone developed for me that generates an XML
file to display web pages. Following is a very small portion of an examp... more >>
read values from xml node object
Posted by raju at 10/3/2007 1:38:30 AM
Hai,
Our client having one webservice, that return the xmlNode object
as
<Hello>
<First>one</First>
<second>Two</second>
</Hello>
When i call that webservice from vb.net code, it returns the outer
text as <Hello></hello> tags.
I cant read the child nodes. object ... more >>
Force XmlSerializer.Deserilize to ignore empty XML tags
Posted by eggie5 at 10/2/2007 2:55:04 PM
I'm having trouble deserilizing an xml node that has empty tags. See
XML:
<ContentCampaigns>
<ContentCampaign>
<ad_id_source type="integer"></ad_id_source>
<billing_code type="integer"></billing_code>
<birth type="datetime">2007-08-24T16:15:16-07:00</birth>
<body>this camp... more >>
How to combine data?
Posted by Yuriy Galanter at 10/2/2007 10:38:25 AM
Hello,
Sorry if this question has been asked before, this is the first time I
encounter this problem. I have 2 XML files
1st file:
<record ID = "1">
<title>some text</title>
</record>
<record ID = "2">
<title>more text</title>
</record>
<record ID = "3">
<title>a... more >>
Date format in xslt
Posted by Sandeep Singh at 10/1/2007 5:15:00 PM
Hi,
How to convert date format from MM/dd/yyyy to yyyyMMdd in the XSLT.
Is there any method to convert.
I am getting date in the XML as string.
Plx response on the same group.
Thanks in advance
Sandy
... more >>
Nested schema bug? Project compiles, but doesn't read XML properly
Posted by rogercnorris NO[at]SPAM yahoo.com at 10/1/2007 1:56:07 PM
We've run into an issue with VS2005 (at least I *think* it's an issue
with Visual Studio) and one of our XML dataset schemas. We're trying
to add a nested XML element to an existing element, but even though
the project compiles fine, the XML document is not being read into a
dataset properly.
... more >>
System.Windows.Controls default values
Posted by ZiggyShort at 10/1/2007 4:13:01 AM
Does anyone know how to determine default values of a UIElement derived object?
eg. colour of a TextBox BorderBrush? I set a colour on an error condition,
and once that error condition has been rectified I reset the colour to the
original value.
I may need to store original textbox border c... more >>
Help with XMLDocument
Posted by Bubba at 10/1/2007 12:00:00 AM
Hi. I've got an XML file similar in construct to:
<Stuff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="Stuff" xsi:schemaLocation="Stuff all-stuff.xsd">
<Foo ...>
Foo Elements
</Foo>
<Bar ...>
Bar Elements
</Bar>
<FooBar ...>
... more >>
|