XML File Format Used By LOR2 to Save Sequences The XML format used by LOR2 makes it easier for users to view and edit a sequence file outside of LOR with.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Alternative FILE formats
WeB application development
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
EXCEL Spreadsheet Basics
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Tutorial 11: Connecting to External Data
Developing a Basic Web Page Posting Files on UMBC
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Exploring Microsoft® Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Robert Grauer and Maryann Barber Using.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Tutorial 1: Getting Started with HTML5
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel
October 2003Bent Thomsen - FIT 3-21 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
Session IV Chapter 9 – XML Schemas
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 13 – Advanced.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
1 ADVANCED MICROSOFT WORD Lesson 14 – Editing in Workgroups Microsoft Office 2003: Advanced.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Microsoft Excel 2003 Illustrated Complete Data with Other Programs Exchanging.
Comparison of different output options from Stata
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Word 2007 Chapter 4: Share, Compare and Document Robert Grauer, Keith.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.
XML Extensible Markup Language
Academic Computing Services 2007 Microsoft Word 2010 Publishing Long Documents This Guide will teach you how to work with long documents such as dissertations.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from Access, a Web site, or a CSV text file.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Excel Tutorial 8 Developing an Excel Application
Core LIMS Training: Advanced Administration
Tutorial 7 – Integrating Access With the Web and With Other Programs
Presentation transcript:

XML File Format Used By LOR2 to Save Sequences The XML format used by LOR2 makes it easier for users to view and edit a sequence file outside of LOR with some level of success. Editing of sequence files outside of the LOR editor is not recommended by LOR and may result in a corrupt file which is unusable. ! ! ! BACK UP YOUR FILES BEFORE ATTEMPTING TO EDIT THEM ! ! ! Note: This information is valid for LOR (saveFileVersion 8)

LOR1 used a binary data file to store sequences etc. Binary format could be opened using other applications (like Notepad) but most of the data was not understandable and could not be edited. Binary format was compact to achieve smaller files sizes. I’m not sure where goopblip37 came from, but it was used throughout the sequence file to divide sections of the file.

LOR2 uses a XML file format to store sequences etc. XML is a text-based format which can be viewed and understood using simple text readers (like Notepad). XML can be edited and saved using simple text readers (if the correct syntax is used).

XML - Extensible Markup Language XML is similar to the HTML format used to save web pages. XML defines a basic syntax that is used to save and share information. Along with using the XML syntax, LOR2 uses a specific structure to store the data (referred to as a schema). The LOR2 schema is not published, but it can be learned by studying the files. XML format basics XML data is stored in a tree type structure. The XML file has one root element. The root element can contain any number of child elements. Each element is designated with a start-tag ( ) and a corresponding end-tag ( ). Each element can contain additional child elements, values, and attributes. Additional info on XML can be found by searching the web for XML format.

Example of XML data in LOR2 sequence file (viewed using Notepad)

XML Notepad is a great tool for understanding the content of an XML file XML Notepad opens any XML file into tree view. The elements of the tree can be expanded or collapsed to navigate the file. You can learn a lot about how a sequence functions by viewing it in XML Notepad. XML Notepad 2007 is available free from Microsoft.

The XML declaration element This should not be edited. The start-tag of the root element and its attributes (sequence start-tag and sequence attributes) This marks the beginning of all the information contained in the sequence. It also defines sequence specific settings (file version, music file etc.) <sequence is the beginning of the start-tag of the sequence. saveFileVersion, author, createdAt, and musicFilename are all attributes of the sequence. > is the end of the start-tag (and also encloses the attributes of the sequence). The corresponding end-tag ( ) occurs at the end of the file. The saveFileVersion denotes different versions of the structure of the file. Most updates to the saveFileVersion simply indicate new features that are not backward compatible. The official release of LOR2 (2.3.4) changed the saveFileVersion from 5 to 6. This change was significant because they moved the timings from within each track to a separate holding area called timingGrids.

The channels element and individual channel elements contained for each channel This defines the channel settings (name, color etc.) and the lighting effects. is the start-tag for the element that contains the group of channel elements. <channel is the beginning of the start-tag for a individual channel. channel name, color, centiseconds, deviceType, unit, circuit, and savedIndex are all attributes of the channel. > is the end of the start-tag for the channel (and also encloses the attributes of the channel). The savedIndex is how LOR references the channel. It does not control the order they are displayed. The lighting effects for the channel are listed next. /> is the end-tag for the effect. effect is not needed because / occurs before the closing angle bracket. This is an empty-element. It contains no other elements, just attributes * Cool Trick - To reduce the intensities in a sequence, do a replace of intensity="100" with intensity="50"

The tracks element and individual track elements contained for each track This defines which channels are displayed in each track.

The animation element This defines the animation picture, the dimensions of the animation grid, and which cells are assigned to which channels The end-tag of the root element (sequence)

Editing the LOR2 sequence file using Notepad - Part 1 Make a backup copy of the sequence file in case your changes mess up the sequence file. Open Notepad program Open the LOR2 sequence file (File / Open / Files of type: All Files) Make any necessary changes to the file Save the file Find and Replace are the simplest and safest changes Be sure you are replacing only the data you are looking for and you put valid data in its place. Intensity change would be a common change. But notice that the attribute intensity is capitalized differently than the word “Intensity” in the attributes startIntensity and endIntensity. Changing this capitalization could cause LOR to crash when it opens the file. Find and Replace can be done on a specific section of the sequence. Place the cursor at the beginning of the area to be effected and replace until the end of the area is reached.

Editing the LOR2 sequence file using Notepad - Part 2 Adding channels is significantly more complicated. A channel element must be added to both the channels element and one of the track elements. The savedIndex must be in line with the existing savedIndexes. (The savedIndex does not correlate with the displayed order in the program) If you are modifying multiple sequence files, the savedIndexes will likely be different in each file. Fixing missing musicFilename LOR used to have an issue that made it possible for a music sequence to act like an animation sequence and disable the ability to assign a music file. If a music sequence was saved without the music file set to a valid file, LOR would remove the musicFilename attribute in the sequence element. Once this happened the only way to recover the file was to edit the musicFilename attribute back into the sequence file.

Using Excel to extract a sortable copy of the channel configuration – Part 1 (This is how it works in Excel 2003) To avoid affecting any LOR files, export a new copy of your channel configuration. In Excel choose File / Open. Change Files of type to All Files. Open the configuration (.lcc) file.

Using Excel to extract a sortable copy of the channel configuration – Part 2 You may have to choose Open XML As an XML list. You may have to choose OK when told Excel will create a schema.

Using Excel to extract a sortable copy of the channel configuration – Part 3 Look for the columns labeled “unit” (or possibly and “circuit” (or possibly Scroll down till you see info in theses columns. Copy the info to a fresh Excel workbook. Then you can sort, save, etc.

Using Excel to extract a sortable copy of the channel configuration – Part 4 Notes: 1.Any channel that is copied to another track will appear multiple times. To avoid confusion, you can remove any entries from your sort list that do not belong to track 1. 2.Unit numbers are saved as a decimal value in the configuration file. This value has to be converted to Hexadecimal in order to compare it with the settings in the sequence and on the controller.