hi to all,
I have a xml-file which I want to read. How can I do it? I would not load whole xml file at runtime
(XmlDocument _xd = XmlDocument.Load(path))
I want to do it with Readers, but I can not achieve with it.
At the same time I want to add nodes to this xml-file with writers. How do these work with XDocument or at c# 3.5.
K...
I have this huge xml which contains a lot of comments.
Whats the "best way" to strip out all the comments and nicely format the xml from the linux command line?
...
I want to call a stored procedure in SQL Server 2005 that returns an XML string that can then be passed into another method; I think the below code is right up until the point where I execute the query, but then I get a bit lost...
private string GetChartData(string OC_Ttl1, string OC_OL31, string OC_OL32)
{
string chartDat...
I am using LINQ-To-SQL for database.
I am returning the xml content from my web service as follow:
The code:
DataClassesDataContext dc = new DataClassesDataContext();
[WebMethod]
public List<Books> getBooks()
{
return dc.Books.ToList();
}
Output:
<ArrayOfBook>
−
<Book>
<bookID>1</bookID>
<title>Programming wi...
Hi All,
Previously i had a doubt regarding the Parsing XML. thanks for all for giving me help to clear that.
Now i need to load the data which i parsed from the XML in to a table view. can any one help me in that.
[What i need is to load the courses which a student enrolls. the xml file is created based on the login query.]
Thanks in ...
I have a few classes (about 15 or so) in VB.net (2005) that I would like to be able to serialize to xml. Unfortunately they are labeled as friend classes and cannot be exposed outside of the assembly.
The assembly is a dll that is a com interop plugin to a CAD system. I have set all of my classes as friends so that they are not exposed ...
Suppose I have a JAXB element like this:
@XmlElement
private double value;
this will generate XML like this:
<value>3.14159</value>
Now, how do I modify my declaration (or customize JAXB marshalling) to generate XML like this instead:
<value type="double">3.14159</value>
The type attribute will always have the same value, i.e. "...
I tried the function from this question and I get the following error at the line
row[column] =
default(column.DataType);
The error is:
The type or namespace name 'column'
could not be found(are you missing a
using directive or an assembly
reference?)
By the way, I am using VS 2008 and C#. I would appreciate your re...
Good day everybody.
I've doing a bit of "training" at working with Flex and Remote Data from XML files.
This is my HTTPService
<mx:HTTPService id="loginData" url="com-handler/basic.xml" showBusyCursor="true">
</mx:HTTPService>
I have a button and when its clicked its call a function, that calls loginData.send and does a little IF co...
I'm using VS2008 to write and test an xsl transformation. The output contains unwanted white space as illustrated by this simplified example:
Input:
<?xml version="1.0" encoding="utf-8" ?>
<envelope>
<header>
<head id="1" text="Heading1"/>
</header>
<body>
<message>
<items>
<item id="1" Color="Red"/>
...
I've Created a data set, but i don't know how to get this work :)
if anyone can help me, i will be really appreciated!
...
When people say they are a "Java & XML" developer, what do they mean? Are they saying they create XML data to be used in applications, or they use XML to configure a framework like Spring or Hibernate?
What other ways are there to use XML in a Java application?
...
I'm creating a web service with a variety of classes, many of which can contain references to other classes. Sometimes these "sub classes" have the same name (e.g. Customer and Customer), but are actually different, so I've placed these in different namespaces (e.g. MyRoot.Sub1, MyRoot.Sub2, etc.)
When I build the service, the generate...
I have a simple groovy script that generates xml
def builder = new groovy.xml.StreamingMarkupBuilder()
def person1 = {
person(id:99){
firstname("John" )
lastname("Smith" )
}
}
def person2 = {
person(id:100){
firstname("Jane" )
lastname("Doe" )
}
}
def personList = {
"person-list" {
out << person1
out << person2
}
}
println builder.bind(...
I have the following xml snippet:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="reports">
<typeAlias alias="Header" type="VerificationVO"/>
</sqlMap>
While trying to parse this xml using:
def s...
I am looking for a match on template to process the XML,
my XML file looks like
<root xmlns="urn:nampespace1" xmlns:xsi="urn:namespace2">
<time xsi:type="IVL">
<low value="19990101"/>
<high value="20000223"/>
</time>
<obs>
<time xsi:type="PIVL">
<period value="9" unit="h"/>
</time>
</obs>
</root>
...
I am using XML to store a small contact list and trying to write a XSL template that will transform it into a CSV file. The problem I am having is with whitespace in the output.
The output:
Friend, John, Smith, Home,
123 test,
Sebastopol,
California,
12345,
Home 1-800-123-4567, Personal [email protected]...
I understand how to create XML in Groovy using MarkupBuilder. How do you add/insert elements into a MarkupBuilder object after the initial creation? For example, start with:
def builder = new MarkupBuilder(writer)
def items = builder.items{
item(name: "book")
}
Which would produce:
<items>
<item name="book/>
</it...
Can someone help me get the value of the columndefinition/column/cssclass from within my rows loop?
So, in my xsl, I want to pull in the cssclass for the same column position during my "rows" forloop, and put it into my <td class="PullItFromColumnDefition">
Hopefully this makes sense. Can anyone help me figure this out?
Thanks.
My XM...
I'm working on getting some objects serialized through an mvc site and returning things via xml, json, etc and I'm looking for the best way to not send the empty elements.
In a perfect world, simply attaching EmitDefaultValue:=False to DataMembers in a DataContract would suffice, but in some situations, it just doesn't fly.
A String de...