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

  • Home
  • SEARCH
  • 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 8623415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:16:30+00:00 2026-06-12T07:16:30+00:00

I have an xml document like this: <sample xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:type=structure> <film> <!– The act1,

  • 0

I have an xml document like this:

<sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="structure">
    <film>
        <!-- The act1, act2 and act3 play for 27000 milli seconds each-->
        <sequence id="film1">
            <condition time="&lt;=27000"> PLAY </condition>
            <condition time="&gt;27000"> STOP </condition>
        </sequence>
            <sequence id="film2">
            <condition time="&lt;=27000"> PLAY </condition>
            <condition time="&gt;27000"> STOP </condition>
        </sequence>
        </film>
        </sample>

I have this time attribute and some hard coded values. Im having around 20 tags ‘films’ and i do not want to hard code these numbers in all the twenty films. Please let me know if there are ways to declare some constants and use something like ‘LONG’, ‘SHORT’ instead of these numbers

  • 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-06-12T07:16:31+00:00Added an answer on June 12, 2026 at 7:16 am

    There’s no builtin mechanism in XML to do that. You have two choices to accomplish this:

    1. Modify the application that handles the XML to recognize a tag to define variables, then substitute the values when processing the data.
    2. Preprocess the XML through an XSL stylesheet that substitutes the values for variables
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml document that looks like this. <foo> <bar type=artist/> Bob Marley
I have an XML document with some sample content like this: <someTag> <![CDATA[Hello World]]>
I have this XML document : <?xml version=1.0 encoding=utf-8?> <Wix xmlns=http://schemas.microsoft.com/wix/2006/wi> <Fragment> <DirectoryRef Id=AcquisitionFolder>
I have XML something like this: <?xml version=1.0?> <a xmlns=http://mynamespace> <b> <c val=test />
I have a xml document like this : <Node1 attrib1=abc> <node1_1> <node1_1_1 attrib2 =
Hi I have an xml document like this <root> <cert id=1> </cert> <cert id=2>
I have an XML document which looks something like this: <meadinkent> <record> <comp_div>MENSWEAR</comp_div> <sty_ret_type>ACCESSORIES</sty_ret_type>
I have an XML document that matches our site navigation something like this: <page
So I have a xml document loaded in JavaScript variable. Xml looks like this:
I have got an XML document which looks something like this. <Root> <Info>....</Info> <Info>....</Info>

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.