Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

XML

20K

Solutions

13K

Contributors

Extensible Markup Language (XML) refers to the encoding of documents such that they can be read by both machines and humans. XML documents use tags to show the beginning and end of a set of data. XML is used extensively on websites to show volumes of data, and is the default for a number of office productivity suites. This topic includes discussions of XML-related technologies, such as XQuery (the XML Query language), XPath (the XML Path language), XSLT (eXtensible Stylesheet Language Transformations), XLink (the XML Linking language) and XPointer (the XML Pointer language).

Share tech news, updates, or what's on your mind.

Sign up to Post

assume i have xml file call abc.xml

do you know any plug-in or app in c#/aspx.net that will create step by step form wizard based on the xml structure.
below we will start to read 'Notary' & 'CA' then i should have three steps

I just need some sort codes example to start.


<Sure>
      <Line>
        <Commercial>
          <Bond Name="Notary">
            <State name="CA"> 
              <Principal step="Step 1">
                <input type="text" class="" id="principalFirstName" placeholder="First Name" value=""></input>              
                <input type="text" class="" id="principalLastName" placeholder="Last Name" value=""></input>
                <input type="text" class="" id="principalMiddleName" placeholder="Middle Name" value=""></input>
                <input type="text" class="" id="principalCompanyName" placeholder="Company Name" value=""></input>
                <input type="text" class="" id="principalDBA" placeholder="DBA" value=""></input>
                <input type="text" class="" id="principalAddress" placeholder="Address" value=""></input>
                <input type="text" class="" id="principalCity" placeholder="City" value=""></input>
                <input type="text" class="" id="principalState" placeholder="State" value=""></input>
                <input type="text" class="" id="principalZip" placeholder="Zip" value=""></input>
                <input type="text" class="" id="principalPhoneNo" placeholder="Phone No" 

Open in new window

0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

It is possible to select range of node using start node and end node.
Below is sample code.

            <w:body>
               <w:p w:rsidR="009F72A0" w:rsidRDefault="00C14A8B" w:rsidP="00D80B27">
                  <w:pPr>
                     <w:pStyle w:val="Heading1" />
                  </w:pPr>
                  <w:bookmarkStart w:id="0" w:name="Page_1" />
                  <w:bookmarkEnd w:id="0" />
                  <w:proofErr w:type="spellStart" />
                  <w:r>
                     <w:t>Microsof</w:t>
                  </w:r>
                  <w:proofErr w:type="spellEnd" />
               </w:p>
               <w:p w:rsidR="00472CBA" w:rsidRDefault="00472CBA" w:rsidP="00472CBA">
                  <w:pPr>
                     <w:spacing w:after="0" />
                  </w:pPr>
               </w:p>
               <w:tbl>
                  <w:tblPr>
                     <w:tblStyle w:val="GridTable5Dark-Accent6" />
                     <w:tblW w:w="0" w:type="auto" />
                     <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1" />
                  </w:tblPr>
                  <w:tblGrid>
                     <w:gridCol w:w="3116" />
                     <w:gridCol w:w="3117" />
                     <w:gridCol w:w="3117" />
                  </w:tblGrid>
                  <w:tr w:rsidR="00E317D5" w:rsidRPr="00531C77" w:rsidTr="00531C77">
        …
0
Hi-

I want to Delete Word Bookmarked Text and paragraph Data using OpenXML in .Net.

I have below code using OpenXML and "Content controls". But my plan is to do the same using "Bookmarks".
I haven't found OpenXML solution to edit and delete text and paragraphs using bookmarks.

using (WordprocessingDocument myDoc = WordprocessingDocument.Open(destFilename, true))
            {
                MainDocumentPart mainPart = myDoc.MainDocumentPart;
                DocumentFormat.OpenXml.Wordprocessing.Document bodyDoc = mainPart.Document;
                IEnumerable<SdtBlock> ccBlocks = bodyDoc.Descendants<SdtBlock>();
                IEnumerable<SdtRun> ccRuns = bodyDoc.Descendants<SdtRun>();

                foreach (var item in cBO.map)
                {
                    
                    SdtBlock myBlock = ccBlocks.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                    SdtRun myRun = ccRuns.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                  
                    Text textContent=new Text();
                    if (myBlock != null)
                    {
                        textContent = myBlock.Descendants<Text>().FirstOrDefault();
                    }
                    if(myRun != null)
                    {
                        textContent = myRun.Descendants<Text>().FirstOrDefault();
                    }
                
                    if

Open in new window

0
Hi Experts,

I was wondering if any one has experience with FortiClient Configuration Tool for 5.6.0 version.
I am trying to remove Fortinet banners, change background colors and add our logo but I checked on the xml tags of the forticlient configuration and can not see those tags. I see a lot of these TAG <![CDATA[]>.
Please advice where should I modify those settings.
0
Hello,
I have a Dymo .label file which is XML code and contains the code required to produce a label on a Dymo Labelwriter 450 printer. I need to convert this XML file to PDF so that I can send it to www.PrintNode.com via an API so that I can print it Clientside. PrintNode will only except a PDF file. In my Server application I have copied the XML code out of the .label file and inserted into into a PDF file using iTextSharp as shown below.
The outcome is that I get a valid PDF file but when I open it , it contains the XML code from the .label rather than the formatted Label which I was expecting to see.  I am obviously missing some part of the conversion process but don't know what it is. Needless to can that if I send this file to printNode it will just print the XML text rather than the label. Any suggestions or pointers or examples would be welcome.

regards
Pat

C# Code where I insert XML into PDF document                          
                           // Create new pdf file
                            try
                            {
                                fs = new FileStream(filePath1, FileMode.Create);
                            }
                            catch (Exception ex)
                            {
                               
                            }

                            //To create a PDF document, create an instance of the class Document and pass the page size and the page margins to the 

Open in new window

0
I have a XML file already as below.
<?xml version="1.0" encoding="UTF-8"?>
-<Form>
+<Checkbox state="False">
+<Checkbox state="True">
+<Checkbox state="False">
+<Checkbox state="False">
-<Checkbox state="True">
<Caption>Dynamic Rod</Caption>
<Tag>C:\Users\DAIP\Desktop\leila\X-Pact Level Control\sources\DynamicRod.docx</Tag>
</Checkbox>
+<Checkbox state="False">
</Form>
How can I copy and paste the files which the sate is True into the word file?
I have already created a Pop up window with Checkboxs where store the documents path. And want to add one more buttom to insert the data from XML file into the word file. The buttom suppose to read the state and then copy the file and paste into the word file.
Appreciate your help!
0
I have an InfoPath form with a repeating table which has a dropdown.  I can add rows and set different values per row dropdown and save and reload the xml document and the rows and values are there.

I need to be able to do three things with the repeating table:
Read the rows and specifically the value of the dropdown
Add rows and set the value of the dropdown
Modify a row and set its value of the dropdown

I need to do all this within a Nintex Workflow.

Please advise.
0
I have 2 different types of XML files called Install and Uninstall.

Install I have the XML file, generated the XSD and then ran the file through and it imports the data fine.

Now the uninstall one is very similar to the install, mostly the same columns 1-2 different, I have created it in exactly the same way, generate the XSD and then run my job but no data is transferred from the flat file source, there are no error messages and no information.

I am at a bit of a loss here as to why this could be happening. Does anyone have any ideas what could be causing this?

Looking at both XSD and XML files I cant see any structure problems.
0
Hi my soap client is not sending any xml request to the soap server. I tried sending data with wsdl link.

require_once('../libs/nusoap.php');
$client = new nusoap_client('http://url.com/wsdlfilelink', 'wsdl');

....

$merchantIDStruct = new stdClass();
$merchantIDStruct->name = 'merchant_id';
$merchantIDStruct->value = '1234567';

$detailArray = new stdClass();
$detailArray->item = $merchantIDStruct;

$parameters = new stdClass();
$parameters->details = $detailArray;
$parameters->billerRef = "RB_C1_RECO";
$parameters->payinstrRef = "RB_C1_RECO";

//$param_merchant_id = array( "merchant_id" => "5235437" );
//$parameters = array("Request" => $param_Request, "merchant_id" => $param_merchant_id);
$query = 'php';
 /* create the proxy object */
$proxyclientwsdl = $client->getProxy();
$result = $proxyclientwsdl->RECOstep1($parameters);


WSDL:

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:typens="urn:PaymentServer" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="RECOstep1" targetNamespace="urn:PaymentServer">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="urn:PaymentServer">
<xsd:element name="Request">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="billerRef" minOccurs="1" maxOccurs="1">
<xsd:simpleType>
0
I pulling data from REST. It will return XML, JSON, JSONP.  Also, I can add a call back for ajax_func . Is there a best practice.  I am planning to use .Net and MVC.  Is there one advantage over another?  I'm just starting from scratch right now.
0
Concerto Cloud for Software Providers & ISVs
LVL 4
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

I have a table in which there is a field stored XML data like below

<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>98765</body>
</note>

If  I want to develop  a script, only output the number like 98765, how to do that?

select *
from table
where field like 'number only'
0
Say, I have an XML with Namespace (example contrived for the purpose of the question).
To read the XML below, I can add a namespace manager and read the element. but if i wanted to modify, write a new element to such
XML, how do i do it?

say i want to append, <xyz:status/> element, in the following XML and save it.

string resultStr=@"<xyz:Message xmlns:xyz="http://xyz.com"><xyz:result>...</xyz:result></xyz:Message>";

XmlDocument doc = new XmlDocument();
xDoc.LoadXml( resultStr);

XmlNamespaceManager mng = new XmlNamespaceManager( doc.NameTable );
mng.AddNamespace( "xyz", "http://xyz.com" );

string result = xDoc.SelectSingleNode( "xyz:Message /xyz:result", mng).InnerText;
0
Hi

I'm writing an application which deals with messages and each message can have x number of attributes. I Need to store a "Filter" value for each attribute and would like to make the filter value list persistent once excel has been shut down.

I was hoping something like

<Message>
       <Attribute>
                  <Attribute_Name>Ignition</Attribute_Name>
                  <Filter_Value>On</Filter_Value>
       </Attribute>
      <Attribute>
                  <Attribute_Name>Ignition</Attribute_Name>
                  <Filter_Value>On</Filter_Value>
       </Attribute>
<Message>

Open in new window


I've had a search and found a few ways using xmlmap but nothing using VBA.

I'd really appreciate it if someone could point me in the right direction

Thanks
0
Is it possible to acquire "subcondition" by Amazon PA-API?
I set a request parameter with ResponseGroup = OfferFull and made a request but the returned XML did not contain a subcondition.

In the API document, explanation about subcondition is described, but just the document is old, was subcondition obsolete?

somebody help
0
I need to know to to move or clone node to the specific/anywhere in the XML file. Below I have mentioned example XML

<body>
    <Paragraph>
                <Style>
                       <p1/>
                       <p2/>
                       <p3/>
                </Style>
                <Format>
                       <Style w:val="NormalWeb" />
                       <keepNext />
                       <spacing w:before="0"/>
                </Format>
                <Text>
                        <w:rPr>
                        <w:b />
                        <w:bCs />
                       <w:szCs w:val="20" />
                       <Cond>(Exact Name of Registrant as Specified in its Charter) </Cond>
                 </Text>
</Paragraph>
</body>

Using InsertBefore method I need vba DOMDocument vba code to move or clone the "<Text>" node to after the "<Style>" node. Exactly after the "Style" and before the "Format".

Again, this is a sample code only so dont anser regarding this code.
I just want to know how to move or insert node anywhere of the XML file using ObjXML.InsertBefore method
0
I have placed some sql statements in an XML document to load into my program.
 Example:
<Query>
    <QueryName>Exact Production Orders </QueryName>
      <DBServer>STL01APP</DBServer>
    <SQL>
          Select * from ppordfil_sql
  </SQL>
  </Query>

Simple queries load just fine but when I add a Where ColumnA < 0 I get a parse error on the < sign.

I load this XML from a file.

 xmlDoc.Load(My.Application.Info.DirectoryPath & "\sql.xml")

The program will load all nodes except this one with the < in the query.
I get a "Name" cannot begin with a "<" character, hexadecimal value XXXX Line xxx position xxx.

What would a good work around be?  (Besides not having queries with < in them.)

The queries are SQL Server type queries.

ROg
0
Hi, I need to create a user defined data collector on a 2012 DC and save and copy the collector to a 2nd DC.
Here's what I've done so far.
1. Create new collector choosing Active Directory Diagnostic as the template.
2. I open the collector when done and change the config, for example, save log files to F drive instead of default systemdrive. Once I have made my changes I r-click and save to template, I name it ADD.xml. It saves to xml file.
3. Using logman I run this command "Logman create counter ADD -s RemoteHostName -c c:\temp\ADD.xml

All runs fine and collector get created on target server. But there's a problem. If I right click the new collector it does not have the config changes I created, so doesn't point to F drive.

Has anyone got a way of doing this better than I? In reality I need to copy it to 800 servers, so you see the need to automate.
Thanks all.
0
Dears,

I have a XML file with content as below.

<?xml version="1.0" encoding="utf-8"?>
<!--Informations Vendor="XXX S.A."-->
<City>
      <Region>
            <Name>001</Name>
            <Name>002</Name>
            <Name>004</Name>
            <Name>005</Name>
      </Region>
</City>

Now, I need a VB script, which adds a <name> node with value '003' in an ascending order.

And the final content of the XML must look as below.

<?xml version="1.0" encoding="utf-8"?>
<!--Informations Vendor="XXX S.A."-->
<City>
      <Region>
            <Name>001</Name>
            <Name>002</Name>
                <Name>003</Name>
            <Name>004</Name>
            <Name>005</Name>
      </Region>
</City>

Please guide me how to write a VB script code for this.
I am struggling to do it for the time being. Your help is highly appreciated.
0
I get error about the computername in <Computername>%COMPUTERNAME%</ComputerName> in my unatrtended xml file when I try to apply Windows 10 image on PC. It did work when I was applying Windows 8.
0
Free Tool: IP Lookup
LVL 10
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

how to use dir command to search for files that ran last one hour ?

see the below command that search for last modified xml file in folder with the date
dir /b /a-d /o-d "%BaseDir%\*.xml" 2^>NUL

i need search for one hour file so need the command to search for time
0
I have a stylesheet that I attempted to show the greek letter delta.  I have tried many ways and cannot get it to show.  This is the last attempt:
<fo:inline font-family="Symbol">
    D
</fo:inline>

Open in new window


Earlier, I attempted this:
<fo:inline font-family="Symbol">
      Δ - &#916; - &#0394; <br/>
</fo:inline>

Open in new window

0
I need to combine two XML/XSL commands.  The first of which formats the number entered/utilized:
<xsl:value-of select="inr:distanceFormat(number(@length), $xslDistancePrecision)"/>

Open in new window


The other is the Square Root funtion/call:
<xsl:call-template name="math:sqrt">
					<xsl:with-param name="number" select="($varX2 - $varX1) * ($varX2 - $varX1) + ($varY2 - $varY1) * ($varY2 - $varY1)"/>
				</xsl:call-template>

Open in new window


I tried this and it did not work.  The idea was to create a variable that would calc the square root of the number and then I could call the variable in the formatting line.:
<xsl:variable name="varSqRt1" Select="<xsl:with-param name=""number"" select=""($varX2 - $varX1) * ($varX2 - $varX1) + ($varY2 - $varY1) * ($varY2 - $varY1)""/>"/>

Open in new window

0
Hello All ,
I need a powershell script which will detect existence of a xml file under current logged on users Appdata\Roaming\SAP\Common folder , and also check the size of file which should be greater then 15kb and return as detected if found .

Thanks in advance
0
I have a XSL that I have put together and it's about done.  I need to calculate the square root of a number.  I have researched and found what I THOUGHT was the solution, but I could not get it to work.  I need assistance putting it together.  I am getting an error that is attached.  XML errorHere is the code I have:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:inr="http://mycompany.com/mynamespace" xmlns:math="http://exslt.org/math/functionssqrt/math.sqrt.template.xsl" extension-element-prefixes="math">
    <xsl:include href="../format.xsl"/>
	<xsl:import href="sqrt.xsl" />
    <xsl:param name="xslRootDirectory" select="inr:xslRootDirectory"/>
    <!-- List Coordinates with Station Report -->
    <xsl:template match="/">
        <xsl:variable name="gridOut" select="inr:SetGridOut(number(InRoads/@outputGridScaleFactor))" />
        <html>
            <head>
                <link rel="stylesheet" type="text/css" href="{$xslRootDirectory}/_Themes/engineer/theme.css"/>
            </head>
            <body>
				<xsl:apply-templates/>
            </body>
        </html>
    </xsl:template>
    <!-- Element Point Data -->
    <xsl:template match="HorizontalLine | HorizontalCircle | HorizontalSpiral">
        <xsl:variable name="startStation" select="Start/station/@internalStation"/>
        

Open in new window

0
HI,
I have got an an xml file with chinese chars like below  and trying to parse it in Oracle, but it is not returning the chars exactly as it is in Xml file. Can someone advice what setups should I do to get chinese chars ?

<?xml version='1.0' encoding='UTF-8'?>
      <emp_data>
         <name xml:lang="zh">国金证券股份有限公司</name>
      </emp_data>

   SELECT *
    FROM XMLTABLE('/emp_data'
      PASSING XMLTYPE(BFILENAME('XML_DIR', 'test_xml.xml'),
      NLS_CHARSET_ID('AL32UTF8'))
        COLUMNS
     name  VARCHAR2(200)  PATH 'name'        
      ) t;


<code>
          SELECT 'VARCHAR2' charset, value$, NAME FROM sys.props$ WHERE name
             = 'NLS_CHARACTERSET'
</code>
returns: WE8MSWIN1252
0

XML

20K

Solutions

13K

Contributors

Extensible Markup Language (XML) refers to the encoding of documents such that they can be read by both machines and humans. XML documents use tags to show the beginning and end of a set of data. XML is used extensively on websites to show volumes of data, and is the default for a number of office productivity suites. This topic includes discussions of XML-related technologies, such as XQuery (the XML Query language), XPath (the XML Path language), XSLT (eXtensible Stylesheet Language Transformations), XLink (the XML Linking language) and XPointer (the XML Pointer language).