SlideShare une entreprise Scribd logo
1  sur  33
Becoming a coder in 60 minutes
mewssystems.com
CODING FOR MEWS
How to install a new hotel?
How to create a nice confirmation e-mail?
How to format T&C’s?
How to make custom bill headers?
How to format the text on the registration card?
XML
HTML
Hotel installation
mewssystems.com
HOTEL INSTALLATION
Why installing via an XML file?
1) You can re-use the same file for Demo and Production.
2) You can send the file to a colleague for a review!
3) If something goes wrong, you can send the file to MEWS
for an analysis of the problem.
4) You can re-use parts of the file when installing a similar hotel.
XML
mewssystems.com
XML
eXtensible Markup Language
mewssystems.com
XML – BASIC TERMINOLOGY
<element>Text content.</element>
opening tag closing tag
name of the element
no whitespace
This is an XML element. It has 3 parts – opening tag, closing tag and content. The content can be a text, or another XML element. Always make sure that there
is no space within your opening tag. A space is a separator between attributes in XML. That’s why you cannot use it in the name of the element. Always make
sure that the name of the closing tag matches the name of the opening tag. Case sensitive – capital letters matter. The forward slash always needs to be at the
start of the closing tag.
mewssystems.com
XML – BASIC TERMINOLOGY
<price>300</price>
Q: What is the name of this element?
Q: What is the content of this element?
mewssystems.com
XML – BASIC TERMINOLOGY
<element/>
This is an element without content. It’s called empty element or, also, self-closing element. The opening tag is also a closing one. That’s why the slash is present
at the end of the opening/closing tag.
mewssystems.com
XML – BASIC TERMINOLOGY
<soldOut/>
The meaning of the self closing tag, when it does not have any content is its presence itself. If you have such an element inside of an element called
roomCategory, it probably means that all the rooms of that category are sold. If the element is not there, it’s not sold out.
mewssystems.com
XML – BASIC TERMINOLOGY
<element attribute=“value”>Content</element>
attribute name
no whitespace
attribute value
Attributes are another way how to structure information. You can add more informatin about the element.
mewssystems.com
XML – BASIC TERMINOLOGY
<price currency=“EUR”>300</element>
mewssystems.com
XML – BASIC TERMINOLOGY
<price currency=“EUR” vat=“19”>300</element>
An element can have more attributes. Those are separated by space. That’s, again, why the name of the attribute cannot contain a space. Also, the value of the
attribute needs to be enclosed in quotes. The application that reads such a file will then recognize, where the value starts and where it ends.
Q: What’s the error here?
mewssystems.com
XML – BASIC TERMINOLOGY
<hotel name=“Luxury Suites”>
<room number=“A101”/>
</hotel>
You can nest elements into each other. Always make sure that one element is nested in another one. You cannot cross them. If you open an element hotel and
then an element room, you need to close them in the order room, hotel. If you do otherwise, those are interleaved and your XML is not valid.
mewssystems.com
XML – BASIC DOCUMENT STRUCTURE
<?xml version=“1.0” encoding=“UTF-8”?>
<root>
</root>
<child>
</child>
<childOfChild>
Text content of an element.
</childOfChild>
<anotherChild />
<child-with-attribute attributeName=“value” />
<!-- This is an XML comment -->
mewssystems.com
XML – EXAMPLE
<?xml version=“1.0” encoding=“UTF-8”?>
<animals>
<wild>
<dog owner=“Matt” kind=“Jack Russel”>
Beyoncé
</dog>
<anonymousCat/>
<cat knownAs=“Gucci” />
<!-- No more animals in this XML file. -->
</wild>
</animals>
mewssystems.com
XML – COMMON MISTAKES
<?xml version=“1.0” encoding=“UTF-8”?>
<root>
<child>
<dog>
Beyoncé
</cat>
<hi>
<hello reason=To be kind>
Greetings!
</hi>
</hello>
<dog known As=“Gucci” nickname=“Big “G””>
<!- No more animals in this XML file. -->
</Child>
<root>
<animals>
</animals>
There are 10 errors. Identify them.
mewssystems.com
XML – COMMON MISTAKES
<?xml version=“1.0” encoding=“UTF-8”?>
<root>
<child>
<dog>
Beyoncé
</cat>
<hi>
<hello reason=To be kind>
Greetings!
</hi>
</hello>
<dog known As=“Gucci” nickname=“Big “G””>
<!- No more animals in this XML file. -->
</Child>
<root>
<animals>
</animals>
mewssystems.com
XML – COMMON MISTAKES
<?xml version=“1.0” encoding=“UTF-8”?>
<root>
<child>
<dog>
Beyoncé
</dog>
<hi>
<hello reason=“To be kind”>
Greetings!
</hello>
</hi>
<dog knownAs=“Gucci” nickname=“Big &quot;G&quot;” />
<!-- No more animals in this XML file. -->
</child>
<root>
If you need to use quotes in the value of an attribute, you need to use so-called XML Entities that represent quotes.
mewssystems.com
XML VALIDATION
Always make sure that your file is well-formed
Use some XML editor (Atom, Notepad++, SublimeText, …)
Use some XML validator, e.g. https://validator.w3.org/
Cross-validate your files with your colleagues.
Do not use format-aware text editors like Word, TextEdit, Google Docs, …
mewssystems.com
MEWS XML INSTALLATION FILE
Before you start:
1) Choose an XML editor
2) Remember, how a well-formed XML looks like.
3) Get the Excel config file from the customer and validate it.
4) Obtain the current version of the installer file template.
DEMO TIME!
(XML INSTALLATION SAMPLE)
HTML
mewssystems.com
HTML
HyperText Markup Language
mewssystems.com
HTML
Special case of XML.
A way of telling a browser (web browser, e-mail client, …),
how a document should look like.
We highly recommend to use just a very small subset
(or a web developer).
E-mail clients often support a very small subset of HTML. You need someone with experience to make an advanced confirmation e-mail.
mewssystems.com
HTML - FORMATTING ELEMENTS
<p>, <br />
<strong>, <em>
<img src=“http://…” width=“130” height=“90” />
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
<ul>, <ol>, <li>
<hr />
<a href=“http://...” target=“_blank”>
Click here!
</a>
DEMO TIME!
(BASIC HTML SAMPLE)
MEWS HTML templates
mewssystems.com
HTML TEMPLATES
Some fields in MEWS expect you to fill them in with an HTML
template. Moreover, the HTML can contain special
{placeholders}
that are automatically replaced when MEWS generates the
corresponding document.
mewssystems.com
HTML TEMPLATES
<p>
Dear {Name}, <br />
welcome to our luxury hotel! Pleasure to meet you!
</p>
{DetailsHtml}
<p>
Kind regards, <br />
the team of the {EnterpriseName} hotel
</p>
DEMO TIME!
(CONFIRMATION E-MAIL)
Questions?
mewssystems.com
LINKS
IT crowd scene
CodePen – Confirmation e-mail
Installation template

Contenu connexe

Tendances

Introduction to ExtJS
Introduction to ExtJSIntroduction to ExtJS
Introduction to ExtJSArun Prasad
 
HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4Sanjeev Kumar
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML FormNosheen Qamar
 
05 html-forms
05 html-forms05 html-forms
05 html-formsPalakshya
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panelArun Prasad
 

Tendances (7)

Introduction to ExtJS
Introduction to ExtJSIntroduction to ExtJS
Introduction to ExtJS
 
HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4
 
HTML5 Web Forms
HTML5 Web FormsHTML5 Web Forms
HTML5 Web Forms
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
05 html-forms
05 html-forms05 html-forms
05 html-forms
 
Form Validation
Form ValidationForm Validation
Form Validation
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panel
 

En vedette

Best new yorks_hotel
Best new yorks_hotelBest new yorks_hotel
Best new yorks_hotelBIP America
 
Talk Like TED: 3 Unbreakable Laws of Communication
Talk Like TED: 3 Unbreakable Laws of Communication Talk Like TED: 3 Unbreakable Laws of Communication
Talk Like TED: 3 Unbreakable Laws of Communication Carmine Gallo
 
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...Carmine Gallo
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldabaux singapore
 

En vedette (6)

Best new yorks_hotel
Best new yorks_hotelBest new yorks_hotel
Best new yorks_hotel
 
Talk Like TED: 3 Unbreakable Laws of Communication
Talk Like TED: 3 Unbreakable Laws of Communication Talk Like TED: 3 Unbreakable Laws of Communication
Talk Like TED: 3 Unbreakable Laws of Communication
 
Digital Storytelling for Social Impact
Digital Storytelling for Social ImpactDigital Storytelling for Social Impact
Digital Storytelling for Social Impact
 
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...
The Storyteller's Secret: 3 Keys to Mastering Storytelling to Win Hearts and ...
 
5 Storytelling Lessons From Superhero Stories
5 Storytelling Lessons From Superhero Stories5 Storytelling Lessons From Superhero Stories
5 Storytelling Lessons From Superhero Stories
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 

Similaire à Becoming a coder in 60 minutes - Mews Commander PMS

Similaire à Becoming a coder in 60 minutes - Mews Commander PMS (20)

xml introduction in web technologies subject
xml introduction in web technologies subjectxml introduction in web technologies subject
xml introduction in web technologies subject
 
Xml
XmlXml
Xml
 
XML notes.pptx
XML notes.pptxXML notes.pptx
XML notes.pptx
 
Xml 1
Xml 1Xml 1
Xml 1
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
 
Web engineering notes unit 4
Web engineering notes unit 4Web engineering notes unit 4
Web engineering notes unit 4
 
Android de la A a la Z XML Ulises Gonzalez
Android de la A a la Z  XML Ulises GonzalezAndroid de la A a la Z  XML Ulises Gonzalez
Android de la A a la Z XML Ulises Gonzalez
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
 
Wp unit III
Wp unit IIIWp unit III
Wp unit III
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
Web engineering UNIT IV as per RGPV syllabus
Web engineering UNIT IV as per RGPV syllabusWeb engineering UNIT IV as per RGPV syllabus
Web engineering UNIT IV as per RGPV syllabus
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
Xhtml Basics
Xhtml BasicsXhtml Basics
Xhtml Basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
Xhtml Basics
Xhtml BasicsXhtml Basics
Xhtml Basics
 
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTHWeb programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
 
5. Frames & Forms.pdf
5. Frames & Forms.pdf5. Frames & Forms.pdf
5. Frames & Forms.pdf
 
CTDA Workshop on XML and MODS
CTDA Workshop on XML and MODSCTDA Workshop on XML and MODS
CTDA Workshop on XML and MODS
 
chapter 4 web authoring unit 4 xml.pptx
chapter 4 web authoring  unit 4 xml.pptxchapter 4 web authoring  unit 4 xml.pptx
chapter 4 web authoring unit 4 xml.pptx
 

Dernier

20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdfMatthew Sinclair
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...Escorts Call Girls
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"growthgrids
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...SUHANI PANDEY
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceEscorts Call Girls
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls DubaiEscorts Call Girls
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...nirzagarg
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...SUHANI PANDEY
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftAanSulistiyo
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...nilamkumrai
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge GraphsEleniIlkou
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)Delhi Call girls
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC
 

Dernier (20)

20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 

Becoming a coder in 60 minutes - Mews Commander PMS

  • 1. Becoming a coder in 60 minutes
  • 2. mewssystems.com CODING FOR MEWS How to install a new hotel? How to create a nice confirmation e-mail? How to format T&C’s? How to make custom bill headers? How to format the text on the registration card? XML HTML
  • 4. mewssystems.com HOTEL INSTALLATION Why installing via an XML file? 1) You can re-use the same file for Demo and Production. 2) You can send the file to a colleague for a review! 3) If something goes wrong, you can send the file to MEWS for an analysis of the problem. 4) You can re-use parts of the file when installing a similar hotel.
  • 5. XML
  • 7. mewssystems.com XML – BASIC TERMINOLOGY <element>Text content.</element> opening tag closing tag name of the element no whitespace This is an XML element. It has 3 parts – opening tag, closing tag and content. The content can be a text, or another XML element. Always make sure that there is no space within your opening tag. A space is a separator between attributes in XML. That’s why you cannot use it in the name of the element. Always make sure that the name of the closing tag matches the name of the opening tag. Case sensitive – capital letters matter. The forward slash always needs to be at the start of the closing tag.
  • 8. mewssystems.com XML – BASIC TERMINOLOGY <price>300</price> Q: What is the name of this element? Q: What is the content of this element?
  • 9. mewssystems.com XML – BASIC TERMINOLOGY <element/> This is an element without content. It’s called empty element or, also, self-closing element. The opening tag is also a closing one. That’s why the slash is present at the end of the opening/closing tag.
  • 10. mewssystems.com XML – BASIC TERMINOLOGY <soldOut/> The meaning of the self closing tag, when it does not have any content is its presence itself. If you have such an element inside of an element called roomCategory, it probably means that all the rooms of that category are sold. If the element is not there, it’s not sold out.
  • 11. mewssystems.com XML – BASIC TERMINOLOGY <element attribute=“value”>Content</element> attribute name no whitespace attribute value Attributes are another way how to structure information. You can add more informatin about the element.
  • 12. mewssystems.com XML – BASIC TERMINOLOGY <price currency=“EUR”>300</element>
  • 13. mewssystems.com XML – BASIC TERMINOLOGY <price currency=“EUR” vat=“19”>300</element> An element can have more attributes. Those are separated by space. That’s, again, why the name of the attribute cannot contain a space. Also, the value of the attribute needs to be enclosed in quotes. The application that reads such a file will then recognize, where the value starts and where it ends. Q: What’s the error here?
  • 14. mewssystems.com XML – BASIC TERMINOLOGY <hotel name=“Luxury Suites”> <room number=“A101”/> </hotel> You can nest elements into each other. Always make sure that one element is nested in another one. You cannot cross them. If you open an element hotel and then an element room, you need to close them in the order room, hotel. If you do otherwise, those are interleaved and your XML is not valid.
  • 15. mewssystems.com XML – BASIC DOCUMENT STRUCTURE <?xml version=“1.0” encoding=“UTF-8”?> <root> </root> <child> </child> <childOfChild> Text content of an element. </childOfChild> <anotherChild /> <child-with-attribute attributeName=“value” /> <!-- This is an XML comment -->
  • 16. mewssystems.com XML – EXAMPLE <?xml version=“1.0” encoding=“UTF-8”?> <animals> <wild> <dog owner=“Matt” kind=“Jack Russel”> Beyoncé </dog> <anonymousCat/> <cat knownAs=“Gucci” /> <!-- No more animals in this XML file. --> </wild> </animals>
  • 17. mewssystems.com XML – COMMON MISTAKES <?xml version=“1.0” encoding=“UTF-8”?> <root> <child> <dog> Beyoncé </cat> <hi> <hello reason=To be kind> Greetings! </hi> </hello> <dog known As=“Gucci” nickname=“Big “G””> <!- No more animals in this XML file. --> </Child> <root> <animals> </animals> There are 10 errors. Identify them.
  • 18. mewssystems.com XML – COMMON MISTAKES <?xml version=“1.0” encoding=“UTF-8”?> <root> <child> <dog> Beyoncé </cat> <hi> <hello reason=To be kind> Greetings! </hi> </hello> <dog known As=“Gucci” nickname=“Big “G””> <!- No more animals in this XML file. --> </Child> <root> <animals> </animals>
  • 19. mewssystems.com XML – COMMON MISTAKES <?xml version=“1.0” encoding=“UTF-8”?> <root> <child> <dog> Beyoncé </dog> <hi> <hello reason=“To be kind”> Greetings! </hello> </hi> <dog knownAs=“Gucci” nickname=“Big &quot;G&quot;” /> <!-- No more animals in this XML file. --> </child> <root> If you need to use quotes in the value of an attribute, you need to use so-called XML Entities that represent quotes.
  • 20. mewssystems.com XML VALIDATION Always make sure that your file is well-formed Use some XML editor (Atom, Notepad++, SublimeText, …) Use some XML validator, e.g. https://validator.w3.org/ Cross-validate your files with your colleagues. Do not use format-aware text editors like Word, TextEdit, Google Docs, …
  • 21. mewssystems.com MEWS XML INSTALLATION FILE Before you start: 1) Choose an XML editor 2) Remember, how a well-formed XML looks like. 3) Get the Excel config file from the customer and validate it. 4) Obtain the current version of the installer file template.
  • 23. HTML
  • 25. mewssystems.com HTML Special case of XML. A way of telling a browser (web browser, e-mail client, …), how a document should look like. We highly recommend to use just a very small subset (or a web developer). E-mail clients often support a very small subset of HTML. You need someone with experience to make an advanced confirmation e-mail.
  • 26. mewssystems.com HTML - FORMATTING ELEMENTS <p>, <br /> <strong>, <em> <img src=“http://…” width=“130” height=“90” /> <h1>, <h2>, <h3>, <h4>, <h5>, <h6> <ul>, <ol>, <li> <hr /> <a href=“http://...” target=“_blank”> Click here! </a>
  • 29. mewssystems.com HTML TEMPLATES Some fields in MEWS expect you to fill them in with an HTML template. Moreover, the HTML can contain special {placeholders} that are automatically replaced when MEWS generates the corresponding document.
  • 30. mewssystems.com HTML TEMPLATES <p> Dear {Name}, <br /> welcome to our luxury hotel! Pleasure to meet you! </p> {DetailsHtml} <p> Kind regards, <br /> the team of the {EnterpriseName} hotel </p>
  • 33. mewssystems.com LINKS IT crowd scene CodePen – Confirmation e-mail Installation template

Notes de l'éditeur

  1. Tags (přívěsky)