Sunday, January 20, 2013

XML DTD

Focus on the ID and IDREF attributes: A valid document needs to have unique values across ID attributes. An IDREF attribute can refer to any existing ID attribute value.

<meal>
  <person name="Alice"/>
  <person name="Bob"/>
  <person name="Carol"/>
  <person name="Dave"/>
  <food name="salad"/>
  <food name="turkey"/>
  <food name="sandwich"/>
  <eats diner="Alice" dish="turkey"/>
  <eats diner="Bob" dish="salad"/>
  <eats diner="turkey" dish="Dave"/>
</meal>
Thanks stanford.edu for free knowledge
Category:
Read More

XML Schema


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="person">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="fname" type="xs:string"/>
        <xs:element name="initial" type="xs:string"
            minOccurs="0"/>
        <xs:element name="lname" type="xs:string"/>
        <xs:element name="address" type="xs:string"
            maxOccurs="2"/>
        <xs:choice>
          <xs:element name="major" type="xs:string"/>
          <xs:element name="minor" type="xs:string"
              minOccurs="2" maxOccurs="2"/>
        </xs:choice>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>


This question deals with the xs:element, xs:sequence, and xs:choice elements in XML Schema. In order for XML to be valid according to the specified schema:The elements contained in a sequence must appear in exactly the same order as specified in the xs:sequence.Exactly one of the elements contained in an xs:choice must appear.If an element specifies a minOccurs attribute, the XML must contain at least that many instances of the element.If an element specifies a maxOccurs attribute, the XML must not contain more than that many instances of the element.If minOccurs and maxOccurs are not specified, their default value is 1.Elements not defined as a part of a sequence or choice cannot occur inside the corresponding xs:sequence and xs:choice. The given schema specifies the following constraints: The "fname", "initial", "lname", and "address" elements must occur in that sequence. The "initial" element is optional due to its minOccurs value being 0.The "address" element can occur either 1 or 2 times due to its maxOccurs value being 2.After the "address" element, either exactly one "major" element or exactly 2 "minor" elements can occur, but not both. Elements not defined as a part of this schema specification are not allowed to occur as a part of the "person" element.



<person>
    <fname>John</fname>
    <initial>Q</initial>
    <lname>Public</lname>
    <address>123 Public Avenue</address>
    <address>Seattle, WA 98001</address>
    <major>Computer Science</major>
  </person>

Thanks  stanford.edu for free knowledge
Read More

Monday, April 16, 2012

Living In Fear

We live in an age dominated by fear. Elaborate security systems guard homes, offices, automobiles, and numerous other items. Yet it is the vast array of personal fears that create the greatest conflict and generate increasing levels of anxiety. Some of these fears are basic—the fear of death, illness, rejection, failure, old age. There may be only occasional bouts with these kinds of fears, or they can become quite possessive. Below are five reasons we become fearful.

 1. Sin. 
When God created Adam and Eve, there was no evidence of fear in man or beast. There was perfect harmony and peace between God and His creation, man.

 2. Learned Fears
During our childhood and adolescent years, we learn negative as well as positive behaviors. Often associated with certain negative behavior is the accumulation of fears that we derive from our parents or peers. 

Living in Fear


3. Ignorance.
 The less we know about something, the greater our level of fear. For instance, we may be ignorant that the Bible clearly tells us there is no such thing as an unpardonable sin. Yet we are under constant guilt because we think we have committed this terrible deed. 

4. Imagination. 
 Many of our fears are imaginary. We worry and fret about what might happen. We live in fear of fear itself and are anxious about anxiety itself. Our fears are always preceded by this fear-inducing statement— “What if . . .” 

5. Unbiblical self-esteem.
 Many of our fears come from failing to grasp our new position and status in Christ. We are overloaded with guilty feelings and burdened with a poor self-image that leads to fear of failure, fear of rejection, and other qualms. The good news of the gospel is good news for any form of fear.
 
Jesus came not only to save us from our sins and give us eternal life; He also came to give abundant life, a life that overflows with the peace, joy, and stability of Christ Himself. You can be set free from fear, even the most irrational kinds that keep you from enjoying life, and experience the normal Christian life.
Read More

Sunday, April 15, 2012

We Are Children of God

The New Testament writers understood this distinction as well. As significant as the judicial side of our salvation of the Holy Spirit, they each chose something from either their culture or their nature that would lend itself as an accurate illustration of this unique relationship between holy God and man.

The Holy Spirit directed the apostle Paul to use the term adoption to describe the process by which God establishes a relationship with a man or woman who rusts Christ as the Savior:

For you have not received a spirit of slavery leading to fear again, but you have received a spirit of adoption as sons by which we cry out, “Abba! Father!” The Spirit Himself bears witness with our spirit that we are children of God.—ROMANS 8:15–16, emphasis mine Notice how Paul capitalizes on the relational value of doption. We are encouraged to think of our heavenly Father in the most intimate way, as a Daddy. This relationship is ontrasted to one of fear, which commonly existed between a slave and his master. God is not simply putting up with us as a master would with slaves. God desires an intimate relationship with us. And He has taken it upon Himself to remove every possible barrier.

 Paul echoes the same idea in his letter to the Galatians: But when the fullness of the time came, God sent forth His Son, born of a woman, born under the Law, in order that He might redeem those who were under the Law, that we might receive the adoption as sons. —GALATIANS 4:4–5, emphasis mine Here Paul makes the connection between adoption and justification. The interesting thing is that the grammar of these verses indicates that our ustification was merely a means to an end. God’s ultimate goal in salvation was the relationship made available through our adoption. Being declared “not guilty” was simply a necessary step in that direction.
Read More

Saturday, April 14, 2012

Beautiful Prayer Poem

Lord, let me live from day to day,
In such a self-forgetting way,
That even when I kneel to pray,
My prayer will be for others. 

Help me in all the things I do,
To ever be sincerely true,
To know that all I do for You,
Must needs be done for others.

 
Others, Lord, yes others,
Let this my motto be.
Help me to live for others,
That I might live for Thee
.


Read More

Friday, April 13, 2012

What is Prayer ? Worship, Petition, Intercession

Worship

 The first basic form of prayer is worship. It is a spontaneous result from the conscious awareness of God. As I realize the greatness of God and His nearness to me and His love for me, I naturally respond with deep, inner worship of Him. One day I watched a little gnat flying around.I was amazed at how small it was, and yet so wonderfully designed. He was able to defy the laws of gravity, suspending himself in the air and then darting around rapidly. I thought,“God you are so wise in the design of even small forms of life.”

 Worshipping God for His creative genius is a form of prayer—that consciousness of who He is and what He has done inspires worship. When I recognize the wisdom and power of God, I stand in awe of Him. Thanksgiving and praise arise spontaneously as I become conscious of the goodness of God to me that I know I do not deserve. 

Christians should engage in this form of communion and prayer constantly. We should become more conscious of Him as He speaks to us through nature. We see His power in the storm and lightning. We smell His loveliness in a rose. We see His design in a daisy. “In the rustling grass, I hear Him pass, He speaks to me everywhere.” Sometimes we verbalize our worship; often we don’t. It’s simply an overwhelming feeling within our hearts as God manifests Himself to us in a thousand different ways. We just say, “Ohhh, God is so good!” We worship Him and commune with Him in the recognition of His love and grace.


Petition

The second form of prayer is petition, as I bring my personal needs before God and ask Him for the help that I need so desperately. Day by day I cry out to the Lord for His wisdom, guidance, strength, and provision. There are some people who dismiss personal petition prayer as selfish. They say that it’s wrong to pray for anything for yourself because you ought to be thinking more of others.

The Bible says, “The husbandman that laboureth must be first partaker of the fruits” (2 Timothy 2:6). In other words, you can’t give what you don’t have. Like measles, you can’t give ‘em unless you got ‘em. Therefore, I must first be a partaker of God’s grace, love, strength, and power. Then, as I partake, I have something to share with others. 

One of Jesus’ disciples said, “Lord, teach us to pray, as John also taught his disciples.” Jesus then taught that model prayer: “Our Father which art in heaven, Hallowed be thy name. Thy kingdom come. Thy will be done, as in heaven so in earth” (Luke 11:1–2). The first part of the prayer is addressed to God— worshipping God for what He is: “Hallowed be thy name.” Then comes the prayer for the kingdom of God: “Thy kingdom come.” We are to seek first the kingdom of God and His righteousness.

The very next petition is “Give us day by day our daily bread…and lead us not into temptation, but deliver us from evil” (Luke 11:3–4). These are personal petitions for my own needs. I do have needs, and God wants me to bring those needs before Him. There’s nothing wrong with praying and asking God to supply my rent money or whatever else I might need
.
Intercession

The third form of prayer, intercession, is the type of prayer that can be considered work. Worshipping God is not work—that’s glorious! It’s spontaneous, beautiful communion and fellowship with God. Petition isn’t too much work because I’m so interested in what I need that I can become involved in it very easily. But when I begin to tercede, then I must labor. 

Paul, in his closing remarks to the church at Colosse, makes mention of one of his fellow borers, Epaphras. “Epaphras, who is one of you, a servant of Christ, saluteth you, always laboring fervently for you in prayers” (Colossians 4:12). Here prayer is described as work. 

Through intercessory prayer I reach out beyond myself and pray, not for my own needs, but for the needs of those around me. I pray for my family, friends, and neighbors who don’t yet know Jesus Christ. I pray for the needs of those in the Body of Christ. I bring before God all the various needs of others that have come to my attention. It is during intercessory prayer that I become aware of what prayer actually is: a spiritual battle.

What is Prayer ? Worship, Petition, Intercession
 Thanks To Chuck Smith - Effective Prayer  Life
Read More

Thursday, April 12, 2012

Easter Promises Quotes, Always Have God

"I don’t have to be anywhere and yes, I really want to help."

" Had God sent her help via him?"
"Gran’s not getting any better, God."

"Prayers for members who were missing due to illness, hymns sung with gusto and joy, words of encouragement and teaching to remind that God truly cared about even the smallest details."
"Fear that somehow, sometime, someway, she would lose everything."

“I’ve prayed so hard for an answer to help Granny Em, but nothing seems to work.”

“You think it’s simply a matter of ‘if at first you don’t succeed, try again.’” A bitter edge made her musical voice sound harsh.

"Few understood that money couldn’t buy trust or relationships where you could honestly be yourself"
“But you can’t give up on God. He doesn’t dangle a carrot in front of you and then jerk it away when you get too close. God isn’t like that.”

“God is the giver of dreams. He places dreams and ambitions and goals in our hearts because He wants us to achieve them.”

“We don’t understand His ways sometimes, but that doesn’t mean He wants our failure.”

“Because I believe God has good things in store for you and I want you to experience them,”

“God can’t help if you let fear control you,”

You always have God"

“But you have to start, take a stand, insist to your doubting brain that God is who He says He is, that He always keeps His word.”

‘When I am afraid, I will put my confidence in You. I will trust the promises of God.’ Or, ‘Oh God, my strength! I will sing Your praises, for You are my place of safety.’”

“It’s from the sixtieth Psalm when King David reminded himself that he wasn’t alone. He said, ‘God has promised to help us. He has vowed it by His holiness!’ Those are strong words. A powerful promise, one you can depend on"

"My protection and success come from God alone"

"I am like a sheltered olive tree protected by the Lord Himself. I trust in the mercy of the Lord forever and ever"
"God is my helper. He is a friend of mine."

"You just needed a reminder of God’s goodness. It’s easy to let ourselves get ground down by fear and worry,but that’s exactly when we need to trust in God’s goodness.”
Read More