Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7442297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:09:12+00:00 2026-05-29T11:09:12+00:00

I need a master computer to be able to download a predefined XML file

  • 0

I need a master computer to be able to download a predefined XML file then parse it; with the available info, a script should identify the correct file to be downloaded from a web server periodically. Finally this file must be transferred to another computer without internet access in the same LAN and extract it to a given location.

However I have bounds: I can’t use PHP to accomplish this because and I can’t install anything there; I’ve proposed to do this via MD5sums but a given day and hour must be given to be able to download the file to the master computer and another hour and day to transfer it to the slim terminal.

I’ve designed this XML:

<?xml version="1.0"?>
<updateXML id="subdirectory1">
    <file>
        <tarname>compressedFile.tar.gz</tarname>
        <name>fileInsideName</name>
        <filExtension>.ext</filExtension>
        <url protocol="http://">someurl.com/mainDirectory</url>
    </file>
    <update>
        <download>2012-02-02T03:00:00.00000</download>
        <copyTo terminal="1">2012-02-02T09:00:00.00000</copyTo>
    </update>
</updateXML>

And this working XML Schema (XSD)

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="updateXML">
        <xsd:complexType>
            <xsd:sequence>
            
                <xsd:element name="file" minOccurs="1" maxOccurs="unbounded">
                    <xsd:complexType>
                        <xsd:all>
                            <xsd:element name="tarname" type="xsd:string"/>
                            <xsd:element name="name" type="xsd:string"/>
                            <xsd:element name="filExtension" type="xsd:string"/>
                            <xsd:element name="url">
                                <xsd:complexType>
                                    <xsd:simpleContent>
                                        <xsd:extension base="xsd:string">
                                            <xsd:attribute name="protocol" type="xsd:string" />
                                        </xsd:extension>
                                    </xsd:simpleContent>
                                </xsd:complexType>
                            </xsd:element>
                        </xsd:all>
                    </xsd:complexType>
                </xsd:element>
                
                <xsd:element name="update" minOccurs="1" maxOccurs="1">
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="download" type="xsd:dateTime" />
                            <xsd:element name="copyTo">
                                <xsd:complexType>
                                    <xsd:simpleContent>
                                        <xsd:extension base="xsd:string">
                                            <xsd:attribute name="terminal" type="xsd:int" />
                                        </xsd:extension>
                                    </xsd:simpleContent>
                                </xsd:complexType>
                            </xsd:element>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

            </xsd:sequence>
            <xsd:attribute name="id" type="xsd:string"/>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

I’ve researched and I’ve found XMLlint can parse XML files. No problems here now:

$ xmllint --noout --schema updatemenus.xsd updatemenus.xml 
updatemenus.xml validates

I’ve thought in a process that can help me accomplish the given task. I am keen to know if my proposed steps are correct:

  1. Generate the XML and validate it with it’s XSD.
  2. Download it to the master computer and parse it there. Use the available info to construct a complete URL to download.
  3. Once downloaded secure copy it to the needed terminal in the LAN
  4. Check if a newer XML it’s available and download it (a cron process?)

Is this correct? If so, now that my XML is valid, now what?
How can I use its info? I’m new to XMLlint and to XPath. What can I do now?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:09:13+00:00Added an answer on May 29, 2026 at 11:09 am

    I can’t help with the whole thing, but you’ll find dateTime in

    http://www.w3.org/2001/XMLSchema.xsd
    

    edit

    my point is that your document specifies

     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    

    which is an existing document BUT not a true .xsd file and will not validate any of your XML.

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually after css modification, change the version of css file in master. then
Need to be able to set server(s) that replicate all information, as a master
I need to extract information from iTunes Music Library.xml file. Since the xml is
In need of a regex master here! <img src=\img.gif style=float:left; border:0 /> <img src=\img.gif
I need to merge between dev and master frequently. I also have a commit
I have need to select a number of 'master' rows from a table, also
I need to pass data to a variable in my master page each time
i need to implement two different stylesheets in a single master page. one style
I have some ASP.NET Master Pages located in one assembly. I need to use
I'm writing code on the master page, and I need to know which child

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.