xml

Populate textboxes with XmlNode.Attributes

I have Data.xml: <?xml version="1.0" encoding="utf-8" ?> <data> <album> <slide title="Autum Leaves" description="Leaves from the fall of 1986" source="images/Autumn Leaves.jpg" thumbnail="images/Autumn Leaves_thumb.jpg" /> <slide title="Creek" description="Creek in Alaska" source="images/C...

Restructure XML nodes using XSLT

Looking to use XSLT to transform my XML. The sample XML is as follows: <root> <info> <firstname>Bob</firstname> <lastname>Joe</lastname> </info> <notes> <note>text1</note> <note>text2</note> </notes> <othernotes> <note>text3</note> <note>text4</note> </othernotes> I'm looking to extract all "note" elements, ...

replace html tags within xml content with wordML formatting tags

I am taking an XML document and creating a word document using XSLT and OpenXML. The problem is that when I create the word document, all of the HTML that is within the CDATA tags are not escaped and look like this: GET /recipe/recipe/cat.php/&gt;&quot;&gt;&lt;script&gt;alert(document.domain)&lt;/script&gt; I have tried defining "cdat...

Best JDBC data source bean class

I see that some people use org.apache.commons.dbcp.BasicDataSource while other configurations have com.mchange.v2.c3p0.ComboPooledDataSource. Spring has its own: org.springframework.jdbc.datasource.DriverManagerDataSource There are probably even more. But which one is best? I have a JPA/Hibernate three tier application that needs co...

Ruby on Rails: Using XML Builder Partials

Partials in XML builder are proving to be non-trivial. After some initial Google searching, I found the following to work, although it's not 100% xml.foo do xml.id(foo.id) xml.created_at(foo.created_at) xml.last_updated(foo.updated_at) foo.bars.each do |bar| xml << render(:partial => 'bar/_bar', :locals =>...

how to do a line break in xml ? ( xml to html )

Possible Duplicate: Line Break in XML? trying to convert xml to html ... my line break in xml is treated as literals in html... any idea how to keep the line break from xml to html ? sorry dont have the code. not exactly my question thanks ...

Line Break in XML?

I'm a beginner in web development, and I'm trying to insert line breaks in my XML file. This is what my XML looks like: <musicpage> <song> <title>Song Title</title> <lyric>Lyrics</lyric> </song> <song> <title>Song Title</title> <lyric>Lyrics</lyric> </song> <song> <title>Song Title</title...

What's a good way to write XML in C++?

There are plenty of Libraries to parse XML, but it seems there aren't many good (?) ways to write XML in C++. Libraries I've been using so far: PugiXML: really lightweight, very straightforwarded API, but it seems to lack a way to write XML (Or I haven't found it yet) RapidXML: I don't have much experience with RapidXML; But it does l...

XML/XSD intellisense not working in Visual Studio 2010

I am working on xml and xsd files in VS 2010 but intellisense isn't working. Intellisense is working for the same files in VS 2008, however. When I type '<xs:' options like "attribute", "complexType", "simpleType", or "element" do not appear. Is there some difference between the VS 2008 and VS 2010 that I'm missing? I add an xsd file ...

Dynamic Data Manipulation using XSLT from XML

I am not working with XSLT not too long. I read that variable of XSLT can't be updated on the fly, so how can i do the following task. I want to sum up Purchase & Sales and put them into a variable, and make some decision according to these values. (For example, if Purchase is greater then sales then do something if not, do something el...

Need Help About Using XPathNavigator in C#?

Hello. My XML file as below. It mixed schema and normal elements. <?xml version="1.0" encoding="utf-8"?> <!-- R1 --> <ax:root xmlns:ax="http://amecn/software/realtime/ax"&gt; <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <xsd:element name="EquipmentConstants"> <xsd:complexType> <xsd:sequence> ...

parsing xml with php, children

Hello I successfully created my parser Everything is working great except one thing since my xml is formated a little different and I am totally lost on how to assign variable to the children of <photos>. ...

XML parsing using jQuery

I have the following xml: <?xml version="1.0" encoding="utf-8"?> <Area xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <Scenes> <Scene Index="1" Name="Scene1" /> <Scene Index="2" Name="Scene2" /> </Scenes> </Area> Which i am trying to parse with jquery: <script> ...

How to query on XML column In SQL Server 2008

I am using SQL Server 2008 I have a table with xml data looks like: ID xml_col 1 <Attribute id="7">1.0</Attribute><Attribute id="8">AAA</Attribute> 2 <Attribute id="7">2.0</Attribute><Attribute id="8">BBB</Attribute> 3 <Attribute id="7">3.0</Attribute><Attribute id="8">AAA</Attribute> ...

speed: XmlTextReader vs LINQ to XML

Hi, i'm about to read some xml (who isn't :-)) This time however it's a lot of data: about 30,000 records with 5 properties, all in one file. Till now I've always read that the XmlTextReader is the fastest way to read xml data, but now there also is the (nice sytax of) LINQ to XML. Does anybody know any performance issues, or that the...

How should I start learning XML and HTML to build web apps?

Hey everyone. Can someone suggest: how to start learning XML and HTML which I should start first, and what steps should I take I know Objective-C as I’m an iPhone programmer, but I want to know more about web-based applications, so please someone help me with steps should I take as a beginner? Thanks. ...

HttpContext XML values in XSLT

Hi all. Please Help me out. In C# i set a context value as HttpContext.Current.Items["xmlcontentholder"] = xDoc.DocumentElement.FirstChild.OuterXml; and by processing XsltArgumentList i send it to an XSLT file: XsltArgumentList XsltArgs = new XsltArgumentList(); XsltArgs.AddParam("xmlcontentholder", "", "xmlcontent"); and i m tr...

XML as DataSource

I have an XML file called employee. I want to bind the XML file to a GridView. pls help... thanx :-) ...

External XML using AS3.0

Hi, How can i load external xml file in Action Script 3.0, I have seen a tutorial http://webdeginer.blogspot.com/2010/06/external-xml-loading.html, is it right or I have to see any more tutorials. Thanks, K Swamy Vishnubhatla, webdeginer.blogspot.com. ...

How to store an XML file content into a std::string or CString, at compilation time ?

Hello The XML contains symbols that the C++ may misinterpret (like the // in http://www.w3.org/2000/10/XMLSchema) I am wondering if you know about clean ways to include some hard-coded XML into a std::string or a CString, at compile time. (in deed I'm trying to encode an .xsd file for validating some xml input, because I don't want to...