Spaces:
Sleeping
Sleeping
Sathwikchowdary
commited on
Update pages/Info_of_XML.py
Browse files- pages/Info_of_XML.py +52 -0
pages/Info_of_XML.py
CHANGED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
# Custom CSS for styling
|
6 |
+
custom_css = """
|
7 |
+
<style>
|
8 |
+
html, body, [data-testid="stAppViewContainer"] {
|
9 |
+
background-image: linear-gradient(
|
10 |
+
rgba(0, 0, 0, 0.6),
|
11 |
+
rgba(0, 0, 0, 0.6)
|
12 |
+
),
|
13 |
+
url("https://www.istockphoto.com/photo/tech-or-space-background-abstract-3d-illustration-gm1367865109-437999705?utm_source=pixabay&utm_medium=affiliate&utm_campaign=SRP_photo_sponsored&utm_content=https%3A%2F%2Fpixabay.com%2Fphotos%2Fsearch%2Fbackground%2520datascience%2F&utm_term=background+datascience.jpg");
|
14 |
+
background-size: cover;
|
15 |
+
background-position: center;
|
16 |
+
background-repeat: no-repeat;
|
17 |
+
background-attachment: fixed;
|
18 |
+
color: white; /* Ensures all text is readable */
|
19 |
+
}
|
20 |
+
h2, h3 {
|
21 |
+
color: #FFD700; /* Gold color for headings */
|
22 |
+
}
|
23 |
+
p {
|
24 |
+
color: #FFFFFF; /* White text for paragraphs */
|
25 |
+
}
|
26 |
+
</style>
|
27 |
+
"""
|
28 |
+
|
29 |
+
# Inject the CSS into the app
|
30 |
+
st.markdown(custom_css, unsafe_allow_html=True)
|
31 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈What is Xentensible Markup Language(XML)</h2>", unsafe_allow_html=True)
|
32 |
+
st.markdown(
|
33 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
34 |
+
"XML (Extensible Markup Language) is a versatile markup language used for storing and transferring data. It is designed to be easily understood by both humans and machines, making it a popular choice for data exchange across various systems. XML organizes information in a hierarchical tree structure, where elements are defined using tags that may include attributes and nested sub-elements."
|
35 |
+
"</p>",
|
36 |
+
unsafe_allow_html=True
|
37 |
+
)
|
38 |
+
st.markdown(
|
39 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
40 |
+
"Data should be retrieved from databases, and the entire code should be structured using tags, making it a markup-based code. Every tag opened at the beginning must be properly closed with the same tag at the end of the XML file."
|
41 |
+
"</p>",
|
42 |
+
unsafe_allow_html=True
|
43 |
+
)
|
44 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈How to Read(XML)</h2>", unsafe_allow_html=True)
|
45 |
+
st.markdown(
|
46 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
47 |
+
"An XML file can be read using pandas by utilizing the function pd.read_xml("file path")."
|
48 |
+
"</p>",
|
49 |
+
unsafe_allow_html=True
|
50 |
+
)
|
51 |
+
|
52 |
+
|