hari3485 commited on
Commit
ce4df21
·
verified ·
1 Parent(s): 486ccb0

Update pages/hari.py

Browse files
Files changed (1) hide show
  1. pages/hari.py +31 -14
pages/hari.py CHANGED
@@ -305,28 +305,42 @@ def json_details_page():
305
 
306
  # Semi-Structured Data - XML Page
307
 
 
 
 
 
 
 
 
 
 
308
  st.markdown("<h1 style='text-align: center; color: blue;'>Handling XML Files</h1>", unsafe_allow_html=True)
309
 
310
  st.markdown("<h2 style='color: green;'>What is XML?</h2>", unsafe_allow_html=True)
311
  st.write("XML (Extensible Markup Language) is a markup language used for storing and transporting semi-structured data.")
312
 
313
- st.markdown("<h2 style='color: orange;'>Characteristics of XML</h2>", unsafe_allow_html=True)
314
- st.write("""
315
- - <span style='color: purple;'>XML</span> is a markup language, meaning it uses tags to define the structure and content of data.
316
- - <span style='color: purple;'>XML</span> is semi-structured, meaning it has a flexible structure that can be defined by the user.
317
- - <span style='color: purple;'>XML</span> tags are not predefined, allowing users to create their own custom tags.
318
- """, unsafe_allow_html=True)
319
 
320
- st.markdown("<h2 style='color: orange;'>Basic Structure of XML</h2>", unsafe_allow_html=True)
321
- st.write("""
322
- - XML documents consist of elements, which are represented by tags.
323
- - Tags have an opening and closing tag, with the content enclosed within.
324
- - The basic structure of an XML tag is: `<openingtag>content</closingtag>`
 
 
325
  """, unsafe_allow_html=True)
326
-
 
 
 
 
 
 
 
 
327
  st.markdown("<h2 style='color: orange;'>Example of XML Data</h2>", unsafe_allow_html=True)
328
- st.code("""
329
- <persons>
330
  <person>
331
  <name>John Doe</name>
332
  <age>30</age>
@@ -340,6 +354,9 @@ def json_details_page():
340
  </persons>
341
  """, language="xml")
342
 
 
 
 
343
  # Google Colab Link
344
  st.markdown("<h5 style='color:blue;'>Download Jupyter Notebook or PDF with Code Examples</h5>", unsafe_allow_html=True)
345
  notebook_url = "https://colab.research.google.com/drive/14xGAxu_rKAl_eslODfQXoTEpN7NU4lk6"
 
305
 
306
  # Semi-Structured Data - XML Page
307
 
308
+ def xml_details_page():
309
+ st.title("Semi-Structured Data - XML Details")
310
+ st.markdown("
311
+ **XML** (Markup Language) is a markup language used for storing and transporting semi-structured data.", unsafe_allow_html=True)
312
+
313
+ st.title("Working with XML Data in Python")
314
+
315
+
316
+
317
  st.markdown("<h1 style='text-align: center; color: blue;'>Handling XML Files</h1>", unsafe_allow_html=True)
318
 
319
  st.markdown("<h2 style='color: green;'>What is XML?</h2>", unsafe_allow_html=True)
320
  st.write("XML (Extensible Markup Language) is a markup language used for storing and transporting semi-structured data.")
321
 
322
+ st.markdown("<h3 style='text-align: center; color: blue;'>Handling XML Files</h3>", unsafe_allow_html=True)
 
 
 
 
 
323
 
324
+ st.markdown("<h2 style='color: green;'>What is XML?</h2>", unsafe_allow_html=True)
325
+ st.markdown("""
326
+ <ul style="font-family: Arial; line-height: 1.6;">
327
+ <li><code>XML</code> is a markup language, meaning it uses tags to define the structure and content of data.</li>
328
+ <li> It is semi-structured, meaning it has a flexible structure that can be defined by the user.</li>
329
+ <li>Tags are not predefined, allowing users to create their own custom tags.</li>
330
+ </ul>
331
  """, unsafe_allow_html=True)
332
+
333
+ st.markdown("<h3 style='text-align:; color: #ffa500;'>Basic Structure of XML(.xlsx)</h3>", unsafe_allow_html=True)
334
+ st.markdown("""
335
+ <ul style="font-family: Arial; line-height: 1.6;">
336
+ <li> XML documents consist of elements, which are represented by <b>tags</b>.</li>
337
+ <li> Tags have an opening and closing tag, with the content enclosed within.</li>
338
+ <li>The basic structure of an XML tag is: `<openingtag>content</closingtag>`</li>
339
+ </ul>""", unsafe_allow_html=True)
340
+
341
  st.markdown("<h2 style='color: orange;'>Example of XML Data</h2>", unsafe_allow_html=True)
342
+
343
+ st.code("""<persons>
344
  <person>
345
  <name>John Doe</name>
346
  <age>30</age>
 
354
  </persons>
355
  """, language="xml")
356
 
357
+
358
+
359
+
360
  # Google Colab Link
361
  st.markdown("<h5 style='color:blue;'>Download Jupyter Notebook or PDF with Code Examples</h5>", unsafe_allow_html=True)
362
  notebook_url = "https://colab.research.google.com/drive/14xGAxu_rKAl_eslODfQXoTEpN7NU4lk6"