xml

SharePoint 2010 CHOICE value-attribute unknown?

Hi, following this MSDN article a CHOICE Element in a field declaration for SharePoint should have a Value attribute. Value Optional Text. Specifies the display text for the choice. The value can be a reference to a resource in the format $Resources:String. However, choice values are not supported by the multili...

XML childNodes gives undefined result in ActionScript 2.0

for example: In the movieclip which is called (content) inside this we have 2 more textfields which are called titleID and descriptionID, now I try to make this inside the movieclip (content) NOTE: _root.title[0] and _root.description[0] are arrays in the root timeline outside the movieclip (content) take a look in the code: title[i] =...

Multiple contact XML field updates SQL 2008 R2

Hi, I'm not sure of the soundness of the following architecture, but right now, the following information is for a prototype at this time. I have a stored procedure that currently lets me: Pass an owner memberID and say an ID for a new event record In the member table, I have an XML field say called events, and the new event ID gets a...

How to create a XML with a Specific Encoding using XSLT and XMLWRITER

I am trying to apply a XSL style sheet on a source xml and write the output to a target xml file. The xsl removes the xml comments present inside the source xml. The target xml file has UTF-16 encoding in the header. But still i want the output xml to be utf-8 encoding. The code i used is XmlWriterSettings xwrSettings = ...

Remove XML Node using java parser

In the below sample XML, how to remove Entire B Node if E=13 using java parser. <xml> <A> <B> <C> <E>11</E> <F>12</F> </C> </B> <B> <C> <E>13</E> <F>14</F> </C> </B> </A> Please advise. ...

How do I get xml formated data in php

Hi freinds, I am doing one task in that I have to get data from the link that i have. In that link the data is showing in xml format. How do I get the data using php Thanks, ...

How can I transform xml to html on android?

Hi guys, I'm relatively new to java and android, in my android application I need to get xml file, transform it and show to user. I know how to parse xml, but I don't want to parse it and generate view after. I'd like to transform it to html and display in WebView. I'm trying to find something on the Internet but can't find anything((...

Can I store custom XML in web.config

Can I store custom XML in web.config ? I want to store an XML dom (to store some of my site settings) in my web.config, so the application can read that xml dom and show that value in my page. ...

XSLT Transforming performance

Here is links to my files XML XSLT Include XSLT Hi I am transforming xml into html. My xml file is about 10kb big and my xslt 70kb and output html about 10kb big. Transformer xformer = StylesheetCache.newTransformer(templateFile); xformer.transform(new DOMSource(outlineDoc),new StreamResult(out)); The creating of ...

xslt efficient selector usage

Hi, One of xslt stylesheets i have created has many usages of for example <xsl:template match="ProductType"> <xsl:value-of select="../../Title"/> </xsl:template> so my question is would it be more efficient to create a new nodeset manualy including just the data required or perhaps passing in using params? What would constitute bes...

How to use parameter as index in XSLT

Hi, I have a recursive template so that I can update a count. In the template, I want to be able to use the current count to be able to access the node whose index is the current count. <!-- in the template --> <xsl:param name="i"/> <xsl:param name="count"/> <NewNode> <xsl:value-of select="//ACommonElementInTheDocument[$i...

Linq to XML returning me a subset of my input xml

I have an XML like below :- <SourceXML> <Issue ID="123"> <Fields> <Number>5</Number> </Fields> </Issue> <Issue ID="125"> <Fields> <Number>8</Number> </Fields> </Issue> <Issue ID="127"> <Fields> <Number>11</Number> </Fields> </Issue> </SourceXML> I have to get all the Issue nodes which have number as 11 or 8(where clause filter) I tri...

Why can I not remove a child element I've just found? NOT_FOUND_ERR

I'm building a script which has to patch XML files, including replacing one list of elements with another. The following function applies a patch (involving a possibly empty list of elements with the same name) onto a parent Element's list of elements by the same name (also possibly an empty list). (This is only a small part of the patch...

xPath finds nothing but *

This is starting to piss me off real bad. I have this XML code: Updated with correct namespaces <?xml version="1.0" encoding="utf-8"?> <Infringement xsi:schemaLocation="http://www.movielabs.com/ACNS http://www.movielabs.com/ACNS/ACNS2v1.xsd" xmlns="http://www.movielabs.com/ACNS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&g...

using xml as database in php

I heard xml is used as database, can anybody give me a simple tip or link to tutorial how to store some information in database ? what is the best use of xml on php realted to data things? ...

Serializer that sees private data, has parsable output, supports generic collections, and supports custom serialization

I need a very specific kind of .NET serializer. My requirements: shouldn't skip private data output should be human-readable (or at least, easily parsable), preferably XML should support generic collections (no need to be easy, but it should be possible) should support custom-implemented serialization for specific classes. I need (2...

XML SAX parser for scripting using reflection

I'd like an opinion about to create an hypothetic scripting system using XML. The idea is to use a SAX parser and C# reflection. I cannot find a library/framework which allow to specify custom action using XML files. At this time I use XML for serialize application classes, bug could be awesome to specify which actions the application s...

How browsers use the STRING defined in the <img src="STRING" /> to load picture file.

I have a very strange problem: I use xsl to show an html picture where the source is defined in the xml file like this: <pic src="..\_images\gallery\smallPictures\2009-03-11 אפריקה ושחור לבן\020.jpg" width="150" height="120" /> [the funny chars are Hebrew- ;) ] Now comes the strange part: When testing the file locally it works ...

Replace >, <, & chars that appear inside XML nodes

http://stackoverflow.com/questions/2282614/regular-expression-to-match-chars-that-appear-inside-xml-nodes I have an almost indentical problem to this - however, I am using C#. I'm not here to argue the validity of the XML. What gets sent in is out of my control. Input XML: <PNODE> <CNODE>This string contains > and < and & chars....

Accessing a XML node directly via a key

$xml = simplexml_load_file($xmlPath); $items = $xml->list->item; ... echo $items[$currentIndex]->asXML(); When I print out $currentIndex on each iteration, I get 0, 1, 2, 3, 4, etc. When I hard code $items[0]->asXML(); $items[1]->asXML(); $items[2]->asXML(); etc. I get the data I want. But when I loop like I do in the first code segme...