Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Possible XML problem

  • 14-01-2010 3:31pm
    #1
    Registered Users Posts: 7


    Hi everyone.

    I am trying to solve a wee problem. At work we are using a point of sale program (microsoft RMS) and I'm trying to edit some of the reports.

    I am trying to compare 2 text strings.
    The thing is, I am not even sure if it is xml code.
    The files are .xml files but I am told that XML doesn't have any IF statements.

    However the files we have, have plenty if statements in them.
    Here is a snippet :
    <FOR each="SalesTaxes">
    	<IF>
    	<CONDITION> Transaction.SalesTaxes.ShowOnReceipt &amp; Transaction.SalesTaxes.IsTransactionMember </CONDITION>
    		<THEN>
    		<ROW> Transaction.SalesTaxes.Description "|" Transaction.SalesTaxes.Total </ROW>
    		</THEN>
    	</IF>
    </FOR>
    

    First of all, does anyone recognise what type of code this is, as I am pretty sure it's not XML.
    Secondly, if someone knows how to compare text strings in this way?

    example :
    <IF>
    <CONDITION> Number = 2 </CONDITION>
    <THEN> do something </THEN>
    </IF>
    

    This works, however :
    <IF>
    <CONDITION> Country = "Ireland" </CONDITION>
    <THEN> do something </THEN>
    </IF>
    

    This never works, even if the text is an exact match.

    I would greatly appretiate if anyone could help me out.


Comments

  • Banned (with Prison Access) Posts: 890 ✭✭✭CrinkElite


    I don't really know what I'm talking about but is it possible that the "IF/THEN" statements are not statements at all?
    maybe they are just very oddly named tags.

    /Edit
    Just had a little think about this. :confused::o


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    XML is not a language, more of a markup like HTML. Its possible to define structures using pretty much any dictionary words.

    I'm not familiar with the system but it looks like they are using XML declarations as scripts. It would be best to consult the documentation for the POS system to see what they define them to be and what they can take inside them.


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    To me it looks like some scripting code defined in XML for some application? - I doubt this is where data is stored? If so then that is disgusting, Logic + Data


Advertisement