3,634 Topics

Member Avatar for
Member Avatar for weekendrockstar

I really tried with the title! I could not find what I was looking for through google or here. Seemed like something that could be common enough that I'd find it online already but perhaps it's so simple that no one had a problem doing it so they did not …

Member Avatar for weekendrockstar
0
223
Member Avatar for BenWard

Hello, I'm having some trouble with CURL. I'm trying to use a web service to get a customer's name and address but it fails to send my post data when I use NTLM proxy authentication. $xmlToSend = "<?xml version=\"1.0\" ?> <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:dat=\"$this->service\"> <soapenv:Header /> <soapenv:Body> <dat:CustomerDataRequest> <dat:SystemAuthentication> <dat:username>$this->user</dat:username> <dat:password>$this->pass</dat:password> …

Member Avatar for BenWard
0
1K
Member Avatar for Captiva

dears i want help to parse this XML in VB.NET <?xml version="1.0" encoding="UTF-8" ?> - <FOLDER> - <INFO> <REVISION>1.0</REVISION> <DATE>6/11/2015</DATE> <TIME>9:34:40 AM</TIME> </INFO> - <SHEET TYPE="GENERAL_DOCUMENTS" DOC_REF="1021961"> - <INFO_FN TYPE="FileNet-Indexes"> <F_ACCESSRIGHTS_AX /> <F_ACCESSRIGHTS_RD /> <F_ACCESSRIGHTS_WR /> <F_ARCHIVEDATE /> <F_CE_OS_ID /> <F_CLOSED>False</F_CLOSED> <F_DELETEDATE /> <F_DOCCLASSNAME>GENERAL_DOCUMENTS</F_DOCCLASSNAME> <F_DOCCLASSNUMBER>3</F_DOCCLASSNUMBER> <F_DOCFORMAT>image/jpeg;name="00400GF.pdf"</F_DOCFORMAT> <F_DOCLOCATION /> <F_DOCNUMBER>1021961</F_DOCNUMBER> <F_DOCTYPE>0</F_DOCTYPE> …

Member Avatar for tinstaafl
0
250
Member Avatar for Saran_1

I am currently troubleshooting a utility that I have been working on. The main file of the utility is below. Please not that `flatten_dict` and `makerows` are seperate files and functions, respectively. My objectives are to: * Recursively traverse a directory - done * Find XML and text files only …

Member Avatar for Saran_1
0
412
Member Avatar for Alok_5

I want to remove the specific nodes from xml file under song tag whose id =2 from the following file in Android (Java): <music> <song> <id>1</id> <albums_id>1</albums_id> <title>Someone Like You</title> <artist>Adele</artist> <duration>4:47</duration> </song> <song> <id>2</id> <albums_id>1</albums_id> <title>Space Bound</title> <artist>Eminem</artist> <duration>4:38</duration> </song> <song> <id>3</id> <albums_id>1</albums_id> <title>Stranger In Moscow</title> <artist>Michael Jackson</artist> <duration>5:44</duration> …

Member Avatar for Karan_8
0
287
Member Avatar for vapor162

Hi all, I'm brand new to daniweb and fairly new to vb.net and am trying to get my head wrapped around looping through an XML file to create toolstrip buttons in VS 2013 vb.net. i have searched all over google and youtube and now im totally confused. I'd like to …

Member Avatar for Reverend Jim
0
339
Member Avatar for vapor162

is it necessary to close, dispose or otherwise close an XML document after loading it as an Xelement? example: Dim xmldoc As XElement = XElement.Load(xPath) im transitioning from using streamreader and ini files into using XML and im not sure if I need to worry about freeing up resources etc.. …

Member Avatar for cgeier
0
2K
Member Avatar for Dankwansere

Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve …

0
116
Member Avatar for can-mohan

My XSLT is like: <!DOCTYPE stylesheet [ <!ENTITY hyphen "<xsl:text>-</xsl:text>"> <!ENTITY cr "<xsl:text> </xsl:text>"> ]> <xsl:stylesheet id="test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ext="http://exslt.org/common" exclude-result-prefixes="ext" version="1.0"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:variable name="vc_NDCROI" select="'NDC05'" /> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="node()|@*" mode="mPass2"> <xsl:copy> <xsl:apply-templates select="node()|@*" mode="mPass2"/> </xsl:copy> </xsl:template> <xsl:template match="/"> <xsl:variable name="vrtfPass1Result"> …

0
135
Member Avatar for old_apache

I'm trying to convert this xml to json or array. first this is what i did: $response = simplexml_load_string($xml_test); and i got error: < not found, anyone can help me? HTTP/1.1 200 OK Date: Wed, 03 Jun 2015 10:19:38 GMT Server: Apache-Coyote/1.1 Pragma: no-cache Cache-Control: no-cache Expires: Thu, 01 Jan …

Member Avatar for bnmng
0
212
Member Avatar for hefaz
0
102
Member Avatar for Vivek_13

<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%">&nbsp;<span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } …

Member Avatar for Vivek_13
0
1K
Member Avatar for Vivek_13

function getRandomNode($file, $numOfQue) { $xml = simplexml_load_file($file); foreach($xml->main as $main) { //Here I want to Get Ramdom Node using $numOfQue. //$numOfQue is a random node Number } $xml->asXml($file); } guys Help me...

Member Avatar for Vivek_13
0
267
Member Avatar for Launch

Hello, I'm creating a program that functions as a piano in Microsoft Expression Blend and I've hit a bit of a bump. I'm very new to XAML programming, so I thought I'd ask for help since Google searches for the answer just send me deeper into confusion. Basically, I have …

0
98
Member Avatar for Vanquish39

How can I rewrite this with java config? <int-kafka:outbound-channel-adapter id="mainOutboundChannelAdapter" kafka-producer-context-ref="kafkaProducerContext" channel="mainOutboundTopicChanel"> </int-kafka:outbound-channel-adapter>

0
141
Member Avatar for Vivek_13

<root> <question>What is php ?</question> <ansIndex>0</ansIndex> <ans> <0>Server SIde Lang.</0> <1>client side lang</1> <2>none</2> <3>both</3> </ans> </root> //This is my xml File. // Bt I want When <ansIndex> is 0 then set attribute in <0 true>,<ansIndex> is 1 then <1 true> //how i can do this? //my Php code is …

Member Avatar for Vivek_13
0
201
Member Avatar for Vivek_13

<root> <item0><courseId>133</courseId></item0> <item1><question>What is php?</question></item1> <item2><ansIndex>1</ansIndex></item2> <item3><ans>Sever Side Lang.</ans></item3> <item4><ans>Web Lang.</ans></item4> <item5><ans>NOne</ans></item5> <item6><ans>Both</ans></item6> </root> My Xml Function Give This Type Of Output..Bt i Want <root> <courseId>133</courseId> <question>What is php?</question> <ansIndex>1</ansIndex> <ans>Sever Side Lang.</ans> <ans>Web Lang.</ans> <ans>NOne</ans> <ans>Both</ans> </root> This is my Xml Function .. $array = json_decode($_GET['data'],true); function array_to_xml($array, &$xml_user_info) …

Member Avatar for Vivek_13
0
486
Member Avatar for TheITManager

How do you parse repeating XML sub row values in VB.net (2008) using XDocument, and Dictionary. In the code below I am able to read everything down to first row of userGroup.. Hide Copy Code <userGroup id="XX1" title="MAIN GROUP" orgCode="111" type="NORMAL" fullPath="/AAA/XX1/NANA"/> I get all the values for the FIRST …

Member Avatar for djjeavons
0
543
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
312
Member Avatar for Vivek_13

Array ( [0] => 116 [1] => asdasd [2] => 1 [3] => asdsadas [4] => dasdasd [5] => sadasdsad [6] => asdasdasd ) i want to convert this aaray in to xml

Member Avatar for diafol
0
347
Member Avatar for donz365

Hi, I am working on a wbsite for a training centre. I am querying a web service for the list of their courses. There are three parametres in the query: centre, coursetype and courselocation. When querying it directly or using SoapUI it can be queried using 1, 2, 3 or …

Member Avatar for donz365
0
918
Member Avatar for sing1006

I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this …

Member Avatar for sing1006
0
332
Member Avatar for sing1006

xml file <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> <title>The Wedding Ringer</title> <genre>comedy</genre> <duration> 100 mins </duration> </movie> <movie id="1003"> <title>The Avengers</title> <genre>action</genre> <duration> 180 mins </duration> </movie> <movie id="1004"> <title>Taken 3</title> <genre>action</genre> <duration> 100 mins </duration> </movie> <movie id="1005"> <title>Insurgent</title> <genre>Science …

Member Avatar for JeffGrigg
0
338
Member Avatar for sing1006

try { File file = new File("/Users/Alex Ting/Desktop/test2/MovieList.xml"); DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = dBuilder.parse(file); NodeList movielist = doc.getElementsByTagName("movie"); for(int i =0;i<movielist.getLength(); i++){ Node m=movielist.item(i); if(m.getNodeType()==Node.ELEMENT_NODE){ Element movie = (Element) m; String movieID = movie.getAttribute("id"); NodeList mnamelist=movie.getChildNodes(); for(int j=0;j<movielist.getLength(); j++){ Node n = mnamelist.item(j); if(n.getNodeType()==Node.ELEMENT_NODE){ Element name = (Element) …

Member Avatar for JeffGrigg
0
341
Member Avatar for luigi_1

i was developing an app for android where by clicking on buttons i could control the digital state of an Arduino board. Arduino responses with a xml file created in runtime and, by fetching its contents, i'd like to display the actually state of the pins. Now, i could realize …

0
112
Member Avatar for collin_ola

Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have caused such error was changed, so I've absolutely no idea what the problem could be. Here's the code the error …

Member Avatar for stultuske
0
2K
Member Avatar for Robert_33

I am trying to get specific value(s) for a webpage that contains a highchart line chart... From the example below, I use chrome dev tools to view source and I see the following snip-it: `<circle class="data-points" id="frequency-data-point-1" cx="85" cy="434.96683928513573" r="4" tooltip="<strong>Frequency: </strong>1<br /><strong>APM: </strong>0.095"></circle>` I like to return return `0.095' …

0
106
Member Avatar for Soeung Sovath

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <platformCore:searchResult xmlns:platformCore="urn:core_2012_2.platform.webservices.technoplat.com"> <platformCore:searchRowList> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17678</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17705</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17777</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> </platformCore:searchRowList> </platformCore:searchResult> </searchResponse> </soapenv:Body>

Member Avatar for diafol
0
301
Member Avatar for Bartosz

How can I use maxOccurs correctly in my code ?? I am getting error of repeating child. Thank you in advance <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> <xs:element type="nameType" …

Member Avatar for rubberman
0
130
Member Avatar for Bartosz

I am having problem to implement maxOccurs in my XML Schema: error I am getting is Repeating sequence type at line 17 has more than one child My Schema: xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> …

Member Avatar for rubberman
0
211

The End.