3,634 Topics
| |
I want to select a node based on an attribute value. I am using C# program to derive on the attribute value which is stored in a variable. The below code returns null. How can I compare the attribute value against a variable? string posSecond = "test"; SelectSingleNode("//viewentries/viewentry[@position=posSecond]"); Thanks! | |
I want to identify xml nodes that does not have specific attribute. Below is the sample xml. I want to retrieve nodes that does have the "response" attribute. I found atricles that help identify node that has a specific attribute but not my requirement. <top node> <viewentry position=1 children = … | |
from xml.dom import minidom dict[1] = "country" xmldoc = minidom.parse('TestStep.xml') itemlist = xmldoc.getElementsByTagName('TestStepBody') print len(itemlist) print itemlist[0].attributes['Author'].value itemlist[0].setAttribute("Author",dict[1]); for s in itemlist : print s.attributes['Author'].value dict[1] value will be changing dynamically, So i need to dynamically change the attribute value of the Author in python. I this possible? if so … | |
I have just figured out how to search for the element that im looking for in a xml file but now when I run it the code loops through i know 3 times maybe even more. I want to know what im missing that would cause it to loop like … | |
Can any one help me in, creating the Python code for the below XML.Please copy it in to notepad <?xml version="1.0" encoding="UTF-8"?> -<TemplateBlock SchemaVersion="(3, 6, 0, 313)" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">-<Block ConstructorType="dstt_framework.DSTT_TestStep" IsCallerBlock="False" CollapsedState="False" EnableMode="True" Guid="u'{79DDB3BE-30F2-4CC4-AE65-C47A39390F34}'" ModifyTime="1409059399.51" CreationDate="1409059390.1270001" ResultLevel="1" ProtoType="''" DevelopmentNode="u''" LibraryDescription="u'To add a functional unit to the test sequence.'" Author="u't8187sa'" _CustomAttributes="{}" Description="u''" … | |
| |
Hello how can I read xml file without using xml librariy in C++ here http://www.cplusplus.com/forum/general/140931/ | |
Hey gys just started up a wordpress website for a club i am doing at school that deals with crypto currency. we currently have a couple of miners that are mining litecoins and bitcoins. on the wordpress site im looking to display the miner information through API calls through a … | |
Hi all, I have an xml file with some information inside it. I want to load this xml during runtime and generate an equivalent HTML document for this xml file. All this needs to be done programatically and on the fly during runtime. How could i do this? I'm using … | |
I am workign with a xml file that contains the order information for a company. What i am tryign to do is see if the xml file have a scan code in it and if it does then to pull the order number so that it can be passed to … | |
Hi, i have an angularjs app that doesn't work becouse of an incorrect json, i've test it the problem is that i have to work with it, could you help me to fix it? it is this, thank you for help [ { "HotelInformationResponse": { "@hotelId": "106347", "customerSessionId": "0ABAA875-E534-C391-3432-DAF69EC93236", "HotelSummary": … | |
i have a xml file.that doesnot have attributes in the tags.for that i created the xslt file and then used xml datasource and put in a grid view.now i need to search for text in the grid view and need to put the results in grid view again.it is possible.suggest … | |
Dear all, May I know what is the problem for my source code. I let the user to choose the Quarter and Subdept. But when the user choose one of the Subdept, it will show this error Expected '}' at line (var rows = eval('(' + xmlhttp.responseText + ')');) May … | |
am using XML RPC for webservices on localhost using simple example, but i got above error . //Client.php <html> <head> <title>XML-RPC PHP Demo</title> </head> <body> <h1>XML-RPC PHP Demo</h1> <?php include 'xmlrpc.inc'; // Make an object to represent our server. $server = new xmlrpc_client('http://localhost:81/xmlrpcDemo/sample.php'); // Send a message to the server. … | |
Hi guys i need your help, i am trying to read an xmlfile which is on the listbox, after reading it i want to bind the data to GridView, i can read directly from the location where i have saved the XMLfiles but now i want to select it from … | |
Just looking for a push in the right direction. I am overwhelmed by the choice with python at the moment. What are the best tools for managing consitent ETL operations with data in XML and CSV formats to database, graphs and in future a web app. for example should I … | |
Hi Hi I have a requirement like this. We are using xsl top formatt the oracle returned query results in to proper tables . attached is the sample html file generated . I want this html to behave like following . if the column NOTES_ON_CRITICAL_THRESHOLDS contains DDD, we want the … | |
Hi ! I change the CentOS-Media.repo in etc/yum.repo.d because I want to install a program of flash memory. I changed enable and baseurl fields : `enable = 0` to `enable = 1` and `baseurl = file:///media` in CentOS-Media.repo but when I write this cammand in **media** directory : `#yum --disablerepo=\* … | |
I have this xml <?xml version="1.0" encoding="ISO-8859-1"?> <output> <orders> <order> <id>1</id> <number>10002</number> <type>Loading</type> <date>2013-01-01T02:30:00</date> </order> <order> <id>2</id> <number>10003</number> <type>Loading</type> <date>2013-01-01T010:30:00</date> </order> <order> <id>3</id> <number>10004</number> <type>Loaded</type> <date>2013-01-01T12:30:00</date> </order> </orders> <quantities> <quantity> <id_order>1</id_order> <unit>KG</unit> <value>1000</value> </quantity> <quantity> <id_order>1</id_order> <unit>PAL</unit> <value>3</value> </quantity> <quantity> <id_order>1</id_order> <unit>M3</unit> <value>1.5</value> </quantity> <quantity> <id_order>2</id_order> <unit>KG</unit> <value>2000</value> </quantity> <quantity> … | |
Using microdata markup such as this on Dani's profile page with URL http://www.example.com/dani.html <body itemscope itemtype="http://schema.org/ProfilePage"> <h1 itemprop="name">About Dani</h1> <div itemscope itemprop="about" itemtype="http://schema.org/Person"> <link itemprop="url" href="http://www.example.com/dani.html" /> </div> </body> Is it appropriate to set the URL element to the ProfilePage item or the URL element for the Person item to … | |
I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look. # environment variables: # JAVA_HOME=C:\Java\jdk1.6.0_45 JBOSS_HOME=C:\bin\jboss-eap-6.1 Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32; # start up jboss with following parameters: # set "JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=myhost … | |
Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but … | |
I have a question on the WebRequest WebResponse thingee.. This is my code: public void showDateRange() { FromDate = DateTime.ParseExact(txtFromDate.Text, "M/d/yyyy", null); ToDate = DateTime.ParseExact(txtToDate.Text, "M/d/yyyy", null); WebRequest request = (WebRequest)WebRequest.Create(@"D:\Final Charts\LineGraph\linexml.aspx"); WebResponse response = request.GetResponse(); while (reader.Read()) { if (reader.Name == "category") { xmlDate = DateTime.ParseExact(reader.GetAttribute("name"), "M/d/yyyy", null); hffromPoint.Value … | |
I have this database in stored inside my Visual Studio Express 2013 for web. How can I use XSLT to turn into: <?xml version="1.0" encoding="utf-8" ?> <graph caption='Cashflow' subcaption='(Drag to zoom out)' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='0' numdivlines='15' numVdivlines='15' yaxisminvalue='1000' yaxismaxvalue='1800' showVLineLabelBorder='1' numVisibleLabels='500' legendPosition='RIGHT' SCROLLBAR='Glow' btnSwitchToPinModeTitle='Compare Graphs'> <categories> <category name='1/1/2014' … | |
Hi all I have a simple login form with Username and password as fields when the user clicks the login I wish to check the xml whether the username and password is present in the xml. How do I do this, could someone please give me some ideas ? My … | |
Hello I have an input: <Records> <Record> <Row A="UOBSGD2" B="50000"/> </Record> <Record> <Row A="UOBSGD1" B="75050"/> </Record> <Record> <Row A="DBSSGD2" B="55800"/> </Record> <Record> <Row A="DBSSGD1" B="14239"/> </Record> <Record> <Row A="OCBCSGD1" B="55510"/> </Record> <Record> <Row A="OCBCSGD2" B="31714"/> </Record> <Record> <Row A="UOBUSD1" B="36471.1"/> </Record> <Record> <Row A="UOBUSD2" B="41941.765"/> </Record> <Record> <Row A="UOBUSD3" B="48233.02975"/> … | |
Hi guys, i dont know if this is the right place for me to post this question but I have a wordpress plugin thats supposed to sundicate with my other rss feeds and bring them to my new website. I own a bunch of websites and i am using their … | |
Hi there! I am working on my company site hanoiguide.net. In a few days ago, i have found out sitemap.xml file is error and un-useable. I cann't re-update sitemap. Because i don't have hosting account information. Unfortunately, I have no way to get hosting account information from my boss. My … | |
| I'm doing a project for my class and one of the goals is to transform one XML to other using XSLT. I kinda managed to obtain the info within the original XML file but I don't know why I can't "print" the tag's. XML file (original): <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet … |
Hello, <rentalProperties> <property available="yes" contact="0455 455 014"> <type>apartment</type> <price>500</price> <address> <streetNo>15</streetNo> <street>Armadale Street</street> <suburb>Armadale</suburb> <state>VIC</state> <ZipCode>3143</ZipCode> </address> <numberofBedrooms>2</numberofBedrooms> <numberofBathrooms>1</numberofBathrooms> <garage>1</garage> <description>Top floor 2 bed Apartment in a Leafy Street with 2 carspaces</description> </property> </rentalProperty> I have to transform this into xml format using xslt. The address should be separated by … |
The End.