Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Mar 2008
    Posts
    72

    Default XML/HTML comparison

    Can you compare actual tags for equivalence rather than plain string to string? Ignoring whitespacie, including the newline would be good too.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Hello,

    We have XML Tidied and HTML Tidied which can be used to normalize the whitespace and line breaks. At this point, grammars can be defined to mark either just the nodes as Important, or specific other text as Unimportant.
    The different XML and HTML Tidied variants can be found in the "Alternatives" section here:
    http://www.scootersoftware.com/downl...kb_moreformats

    Once installed, the topmost format in the File Formats dialog is the format used automatically when opening. The others can be selected manually after opening the files.


    A guide for defining Unimportant text can be found here. To mark a grammar as Important, simply leave that one item checked, and uncheck all other items.
    http://www.scootersoftware.com/suppo..._unimportantv3
    Aaron P Scooter Software

  3. #3
    Join Date
    Mar 2008
    Posts
    72

    Default

    The download and import worked, but now, that I have XML sorted a simple double click gices me conversion error. This is on the the side which I access via SFTP. Local PC works fine.
    Switching to "XML" or "XML tidied.
    But here another question comes up: How do I make my format selection stick?
    And second right up: Is there a way to apply format selection to both sides in one click?
    Thanks in advance.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Hello,

    For part 1, if the Sorted conversion has any issues with the syntax of the file, it will throw an error. If you download that file locally, then try to reopen, does it work?

    For 2, the format is picked based on the File Formats dialog. The topmost that matches the file mask is the one used automatically when you launch a new session and open files. If you load a previously saved session, then that format used in that specific saved session would be used.

    For 3, the Format's are listed as words/titles in each Text pane (allowing you to change one or the other). Above that are the toolbar buttons, the format button lets you edit the current format, and has a dropdown arrow next to it. If you use the Dropdown arrow, you can then switch to that format for both panes.
    Aaron P Scooter Software

  5. #5
    Join Date
    Mar 2008
    Posts
    72

    Default

    1) Local copy works. Over SFTP it does not. Regular XML, though, does work over SFTP.
    I do not see any error trace at the bottom of the file list view. In the file view it just says Error with the red bullet at the bottom.
    2) After I switch to, say, Xml tidied and close the file view it opens as Xml Sorted next time again.
    3) Ok, thanks that works. I used to switch it by the dropdown right above the text pane.

  6. #6
    Join Date
    Mar 2008
    Posts
    72

    Default

    2) moving rules in the session setup up and down worked too

  7. #7
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Actually, BC4 now includes built-in XML Sorting or XML Tidying. Let's give these a try. You can find them in the Conversion tab, in the dropdown with built in conversions. If you alter your current XML format (or create a new one) that uses one of the internal methods, does this help?
    Aaron P Scooter Software

  8. #8
    Join Date
    Mar 2008
    Posts
    72

    Default

    I tried this. I see no effect of choosing XML sort or XML tidy in that drop down whatsoever. It looks exactly the same as plain XML

  9. #9
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Hello,

    Could you verify this continues to be an issue with the built-in formats in the release from yesterday? If so, could you email in to support@scootersoftware.com with:
    - a link back to this forum thread for our reference
    - Your BCSupport.zip from the Help menu -> Support; Export
    - a pair of sample XML files
    - a full screen screenshot showing the current comparison.
    Aaron P Scooter Software

  10. #10
    Join Date
    Mar 2008
    Posts
    72

    Default

    Aaron hi,
    No luck here. Sent you the email with those attachments

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •