php xslt transformation always adds xmlns=""
Guess the title says it al, somehow my xslt transformation with php always adds xmlns="" as an attribute to all root elements. Is there a way to prevent this? ...
Guess the title says it al, somehow my xslt transformation with php always adds xmlns="" as an attribute to all root elements. Is there a way to prevent this? ...
I am attempting to write XSLT that will run a for-each on the selected following-siblings but stop when another tag (h1) is reached. Here's the Source XML: <?xml version="1.0"?> <html> <h1>Test</h1> <p>Test: p 1</p> <p>Test: p 2</p> <h1>Test 2</h1> <p>Test2: p 1</p> <p>Test2: p 2</p> <p>Test2: p 3</p> </html...
Warning -- I'm not an xml guru. Here is what I have: <Fields> <Field name="BusinessName" look-up="true">My Business</Field> <Field name="BusinessType" look-up="false">Nobody really knows!</Field> </Fields> This maps back to: [XmlArrayItem(ElementName = "Field")] public List<UserInfoField> Fields; and [Serializable, XmlRoot("F...
How can I serialize a list of Exception objects (also including derived exceptions, eg. FileNotFoundException) with the DataContractSerializer? I always get an error about the serializer not knowing the types in the list so i devised a workaround. It looked something like this: Dim XmlSerializer As New DataContractSerializer(Excep...
Hi, I have this XML that I want to be able to pull out the Order#, Item(s), Qty, ItemPrice (Principal, Tax, could be others as well). Here is the XML (see below). What I am having problems with is wiht the ItemPrice. With in it you can 0 to Many Price Components, Tax, Principal Etc. How can I pull those out into a single line output?...
i have the following xml: <messageContent xmlns="http://tempuri.org/" > <Message type="MappedMessage" > <Properties RequestId="Point-CurveRequest-8326ad44-a1cd-4a96-b4ef-1c4ad213d940" Action="getParCurves" EESId="EESID:NY:20100128:BASE" Currency="USD" Index="INX" /> <Body></Body> </Message> </messageContent> and then i have this q...
I'm looking for an open source XML parser that is easy to integrate with my NSTableView and will handle large amounts of RSS feeds ...
Hi! I should make a XML editor on WPF with auto closing tags and highlight tags attributes and data. Now I use PreviewKeyDown event to check which key is pressed. For example when I press < the variable TagStart is set to true and everything typed after < is stored in StringBuilder variable and when > is pressed it generates a close tag....
I'm trying to produce valid XML for a HL7 CDA document from SQL Server 2008 using FOR XML. I'm having trouble with the syntax to get multiple children inside a node instead of repeating the node for each child. /* Expected output: <!-- ******************************************************** Past Medical History section ************...
How do I check to see if an element exists within a given element before trying to add it? Background: I have an XDocument X that contains as a child element Flowers which subsequently contains a series of elements that are each named Flower. Each Flower already has 2 child elements and I would like to add a 3rd element called Price. ...
Is it possible to pass a variable from one parent template to its child element ? <xsl:template match="structure"> <xsl:variable name="var"><xsl:value-of select="@path" /></xsl:variable> <xsl:apply-templates select="folders"> <xsl:with-param name="var1" select="'{var}'"/> </xsl:apply-templates> </xsl:template> this template...
Is there any difference in <noscript> block processing for pages served with MIME-type text/html versus those served with MIME-type application/xhtml+xml? As far as I noticed <noscript> block for text/html pages is not processed at all if JavaScript is disabled in browser. And what happens for application/xhtml+xml pages? I suspect that...
I am using VS 2008 with SP1.If I drag DataSet object to solution Explorer,I am able to add Database tables to Designer interface.I am watching some video tutorial ,they are draging XML Schema object instead DataSet object and adding Database table to create Schema. When i try to do that there is no designer to add the Database table if...
Hi, i've got a website that receives Posted XML data from a third party. I'm looking for a method so I can batch post a number of XML files to this script for development/debugging purposes. I have built a php script that loops through an array of files and uses curl to post each file separately. However due to the number of files i wi...
Hi Gurus, So I am close with this, but when one of the components under my ItemPrice Element (Tax for instance) is missing then my whole Order/Line is not returned. Any thoughts on what I can do if a component like "Tax" is sometimes missing? XML: <?xml version="1.0" encoding="UTF-8"?> <SettlementReport> <Order> <AmazonOrderID>105-...
Let's say I have my class Level: public class Level { public Vector2 dogStart; public List<Pickup> pickups; public string backgroundAsset; public Level() { pickups = new List<Pickup>(); } } How do I store/load instances of the Level class? XML files? Do I create class LevelOne, class LevelTwo, etc. and...
For coonverting Linq to DataTable I am using the following Extension Method(Taken from Stackoverflow) Linq to DataTable public static DataTable ToDataTable<T>(this IEnumerable<T> items) { DataTable table = new DataTable(typeof(T).Name); PropertyInfo[] props = typeof(T).GetProperties(BindingFlags.Public | ...
Hello, I am a Graduate student and I have a subject on XML this semester (everything about XML using SAX and JAXB). I need to come up with an interesting/innovative project for this and consult with the prof. Since I am a newbie in XML stuff, I am really confused. Some of my ideas are: Some kind of iPhone/Android app using XML (but wi...
Hi there, i run a system which needs to update various xml files from data stored in a db. The script runs via a server side php file which is monitored by a daemon so that it executes, finishes to free resources, then is restarted. I have some benchmarking within the script, and when i have to update 100 xml files, its taking about 15...
How can I do this? Or will the serializer automatically go with recursion, and serialize all those child objects into XML? Give me an example how would you serialize classes that contain other classes' objects in themselves! That was the core of this question! I've tried this, and it didn't output anything (except the XML header) to th...