1,599 Topics

Member Avatar for
Member Avatar for alex2356

I am very new to xslt and the like, and was looking for a xsl file to transform a junit-test xml output to something readable, with tables etc. However, when trying to apply the xsl file I get the error `Namespace 'xalan://org.apache.tools.ant.util.StringUtils' does not contain functions` (or similar, as the …

Member Avatar for Mike Askew
0
405
Member Avatar for codesforcoffee

I think this simple example might ask the question a lot more clearly. I have an input file with multiple products. There are different types of product (2 types with 2 product IDs is fine enough for this example), but the input will have many more. I only want to …

Member Avatar for codesforcoffee
0
2K
Member Avatar for lokesh.r.kandula

Hi, My xml has got several tags with same name. I am trying to pick out only top 5 tags. I initially thought this would be simple and tried, but after spending so much time I couldn't get the desired output. Any help would be greatly appreciated. The scenario is …

Member Avatar for Mike Askew
0
165
Member Avatar for persianprez

Hi all, I'm new to xml and xslt. I'm trying to apply a stylesheet to my xml document but I keep getting no stylesheet available. Here is my code for my XSL document, XML, DTD, and CSS: XSL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <style …

Member Avatar for Mike Askew
0
185
Member Avatar for shahai.ali

hi i have a following form in html: `<form action="upload_file.php" method="post" enctype="multipart/form-data"> File Name: <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form>` and here is my `upload_file.php` if (($_FILES["file"]["type"] != "file/XML")) { echo "Invalid file type"; } else { echo 'file is uploaded'; } it …

Member Avatar for Robert1995
0
282
Member Avatar for shahai.ali

hi to all m lil bit confuse as m beginner to the xml+xpath. so m sorry if i m unable to ask any kind of wrong question. now the question is m trying to accessing the name of the of the attribute of xml file using xpath and tyring to …

Member Avatar for shahai.ali
0
162
Member Avatar for samiyahg

This is a sample of the string of data that i need to extract the price of. "Price Rs 475 000 - CHEVROLET AVEO LS // SEP 11 6,000 kms - Red.. full options.. MANUAL 5 door // hatchback Contact me on 786 8394" I have many such strings after …

Member Avatar for samiyahg
0
551
Member Avatar for nemoOooZ

Hi all, I have two xml files and I need to export the result of applying a left outer join between them into a list var result = from file1 in XDocument.Load(f1).Descendants("Contract") join file2 in XDocument.Load(f2).Descendants("Profile") on (file1.Element("CustomerAccID") != null ? file1.Element("CustomerAccID").Value : "") equals (file2.Element("Id") != null ? file2.Element("Id").Value …

0
63
Member Avatar for tukky

Im making a small xsd/xml file for a restaurant based system. Here is the code that i have for my XSD file: <xs:element name="table_cat"> <xs:complexType> <xs:sequence> <xs:element name="category" maxOccurs="unbounded"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="category_id" type="CatID" /> <xs:element name="catdescription" type="Length50"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:unique name="unique-catid"> <xs:selector xpath="category" /> <xs:field …

Member Avatar for Anark10n
0
162
Member Avatar for Anark10n

Apologies if the title is bit confusing, had to keep it concise. Okay so the xml document looks like this <students> <student sid="S2208"> <fname>Ben</fname> <lname>Doe</lname> <scourses courseid="DSA" mode="full-time"/> <scourses courseid="INT" mode="part-time"/> </student> <students> <lecturers> <lecturer lid="L1101"> <fname>Dohn</fname> <lname>Joe</lname> <lcourses courseid="DSA"/> <lcourses courseid="INT"/> <lcourses courseid="ACT"/> </lecturer> <lecturers> Using the courseid attribute …

Member Avatar for Anark10n
0
184
Member Avatar for LucianAdamson

I've been through post after post after post for the last few hours trying to figure this out... im new to the XML parsing stuff so I am starting to get frustrated. Here is a sample of the XMl im trying to parse: <level id="1"> <prop n="PROPERTY" v="VALUE"/> </level> <level …

Member Avatar for LucianAdamson
0
275
Member Avatar for marco.denhartog.5

Hello, I want to generate xml from this input xml: <?xml version="1.0" encoding="UTF-8"?> <document tifToPDF="no" procesDocId=""> <file name="" rendition="application/pdf" major="-1"> E:\Data\Import\ContentServer\IIC01_P9505_D121017_T023126_D0000001.pdf </file> <meta> <categories> <category name="Beschrijving"> <properties> <property name="Ketenproces"> <value>Incasso</value> </property> <property name="Bedrijfsfunctie"> <value>Productie</value> </property> <property name="Bedrijfsproces"> <value>Productie_Incasseren</value> </property> <property name="Werkproces"> <value>FA_Incasso</value> </property> <property name="Vertrouwelijkheid"> <value>vertrouwelijk</value> </property> <property name="Documentrichting"> <value>uitgaand</value> …

Member Avatar for marco.denhartog.5
0
156
Member Avatar for ratanji

actually my task is to create 4 pages data submission form.. i want to store the first three pages data in browser and when i click the final submit button in 4th page 've to insert all the data at a time in mysql so how can i can anyone …

Member Avatar for arijith04
0
250
Member Avatar for kendaop

Hi everyone. I'm teaching myself Android and it's been nothing but trouble. I'm having difficulty even doing some of the simplest tasks. Anyways, I've created a login screen, and when the user presses "OK", I want to switch activities, but it's not working. Here're my Logcat erros: 10-26 10:24:23.779: E/Trace(952): …

Member Avatar for peter_budo
0
602
Member Avatar for chopstix21

I want to obtain a better xml file using some xslt and xml below. <?xml version="1.0" encoding="UTF-8"?> <Pallets><Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>4</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>2</Product> <Quantity>1</Quantity> </Pallet> <Pallet> <PalletNumber>3</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>4</PalletNumber> <Product>2</Product> <Quantity>2</Quantity> </Pallet></Pallets> I need to sum up quantity per pallet …

0
105
Member Avatar for smoothe19

Hope my explanation is clear.. Here are the XML elements <element name="LastTimeBuyDate" type="dateTime" nillable="true"/> <element name="LastTimeDeliveryDate" type="dateTime" nillable="true"/> What I am trying to do in XSLT is state that when the lasttimebuydate is empty to add the "nillable="true"" to the xml output... same thing for lasttimedeliovery date <cim:LastTimeBuyDate><xsl:value-of select="ecim:LAST_TIME_BUY_DATE"/></cim:LastTimeBuyDate> <cim:LastTimeDeliveryDate><xsl:value-of …

Member Avatar for smoothe19
0
157
Member Avatar for eantz

Hi.. I have an XML file like this <?xml version="1.0" encoding="UTF-8"?> <player> <user> <username>destiya</username> <password>destiya</password> </user> <user> <username>dian</username> <password>dian</password> </user> </player> then I want to parse it with javascript and here is my javascript code : function loadXML(path) { var xhttp; xhttp = new XMLHttpRequest(); xhttp.open("GET", path, false); xhttp.send(); return …

0
52
Member Avatar for suresh.xsltlist

Hi, Can someone help me on this. Really appreciated. **Requirement:** 1. To generate separate html files for each pal:fragment element, for the source document attached ,the files gets name based on @fragment-id which is present on the pal:fragment elements. 2. The <pal:fragment> can be nested, wrapped with<div> element. 3. The …

0
164
Member Avatar for rexdon

On generating schema file for xml file using visual studio, i want to predefine datatype for xml schema. i.e if xml file is having an element <value>20<value> On generating schema, the datatype has to come'string' instead of default 'unsigned byte'

0
106
Member Avatar for jakub.peciak

Hi, I have a XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <Report> <config repstarttime="" rependtime=""></config> <cashdrops></cashdrops> <cashsheets></cashsheets> <cspdata></cspdata> <fdremdata> <fdrementry ENTRYID=""></fdrementry> </fdremdata> <SHIFTDATA> <SHIFT_CD_Index ShiftSystemIndex="1" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="2" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="3" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="4" Shift_CD_Used="1" ></SHIFT_CD_Index> </SHIFTDATA> <Order> <OrderHead filelocation="" filesuccess="TRUE" Attendant=""></OrderHead> <NFC1DATA nfc1count="0"></NFC1DATA> <PAYMENTDATA paymentcount="1"> <payentrydata id="1"></payentrydata> </PAYMENTDATA> …

Member Avatar for jakub.peciak
0
398
Member Avatar for devgud

Hi I need a general xslt to convert XML to JSONX My input is <Login> <Groups> <Group> <Name>john</Name> <Password/> </Group> <Group> <Name>john</Name> <Password/> </Group> </Groups> </Login> I need output as below <json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx"> <json:object name="Login"> <json:object name="Groups"> <json:array name="Group"> <json:object> <json:string name="Name">john</json:string> <json:null name="Password"/> </json:object> <json:object> <json:string name="Name">john</json:string> <json:null name="Password"/> …

0
57
Member Avatar for AmieCutie

I've been working on a CMS built using AJAX and PHP. Pretty much it saves everything to XML files. Everything is working perfectly except getting the root node's attributes to save. These are never brought in to edit, I don't want these visible in the CMS. So what happens when …

Member Avatar for AmieCutie
0
146
Member Avatar for Venter

Actually I'm having a form with 4pages At the 4th page i'had submit button.so i want to save the data of 1,2,3 pages in xml.wen i click on submit button in 4th page.i want to insert all 4 pages data in mysql.. Anyone help me Plzzz. Thanx In Advanceeeeee...........

Member Avatar for Mike Askew
0
66
Member Avatar for rexdon

on opening xml file with noepadd++ all fields are coming in a single line..Please help me to make it multiple lines <?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not Used</string><string>0</string></PressureSensorRRValues><PressureSensorMBCValues><string>Not Used</string><string>0</string></PressureSensorMBCValues><PressureSensorBC1Values><string>Not Used</string><string>0</string></PressureSensorBC1Values><PressureSensorBC2Values><string>Not Used</string><string>0</string></PressureSensorBC2Values><VacuumSensorValues><string>Not …

Member Avatar for Mike Askew
0
217
Member Avatar for varma51

gud morning frends i need ur valuable reply..here is my xml data i want to display dis data in the html table..so i need html code for to display dis data in the form of table.. [xml code] <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy® --> <?xml-stylesheet type="text/html" href="j.html"?> <catalogs> …

Member Avatar for varma51
0
246
Member Avatar for lokesh.r.kandula

Hi, I have some requirement which is explained below. The input XML is something like: <item> <body> <blocks> <block> <userDefinedFields> <userDefinedField> <fieldLabel>KOBAR</fieldLabel> <fieldDisplayLabel>Global KO</fieldDisplayLabel> <fieldValue>0</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>KIBAR</fieldLabel> <fieldDisplayLabel>Global KI</fieldDisplayLabel> <fieldValue>50</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>BSWP</fieldLabel> <fieldDisplayLabel>Global SW</fieldDisplayLabel> <fieldValue>1</fieldValue> <fieldType>integer</fieldType> </userDefinedField> </userDefinedFields> <otherFields> <otherField/> </otherFields> <userDefinedFields> <userDefinedField> <fieldLabel>EXCLN</fieldLabel> <fieldDisplayLabel>Exclude N</fieldDisplayLabel> …

Member Avatar for lokesh.r.kandula
0
158
Member Avatar for Priti_P

Hi, I have a doubt as if i have a "xml format" text message in my email body then how can i cobert it into an array so that i can fetch each node form it for example: my email body containts xml format: <?xml version="1.0" ?> <candidate> <name>Superduper automation</name> …

Member Avatar for Priti_P
0
2K
Member Avatar for hwoarang69

i am useing java xml to make android apps. in my xml file i have a 2 edittext where user will enter 2 numbers. <EditText android:id="@+id/ET_FIRST" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="50dp" android:hint="Enter 1st number hint" android:inputType="numberDecimal" android:textColor="#ffffff" android:textSize="25dp" android:textStyle="bold" /> <EditText android:id="@+id/ET_SECOND" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="100dp" android:hint="Enter 2nd number hint" android:inputType="numberDecimal" …

Member Avatar for Wisestepp
0
269
Member Avatar for hwoarang69

i am trying to play music when my app start but this line is giving me a error. on 'res'. so i have a project called ANDROID_01 ANDROID_01 > res > sound ourSong = MediaPlayer.create(Splash.this, R.res.sound.intro); my folder tree ANDROID_01 assets bin gen libs res drawable layout menu sound intro.mp3 …

0
65
Member Avatar for Jur

I am making android application, where am I collectiong GPS information and in the end a make a gpx file with rte and rtept elements. It all works fine when I use trk,trkseg,trkpt but I can't make google earth show description of trkpt when you click on the point. So …

0
91

The End.